Options.CommentsColor Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns or sets a WdColorIndex constant that represents the color of comments in a document. Read/write.

expression .CommentsColor

expression Required. A variable that represents an Options collection.

This example sets the global option for Microsoft Word to color comments made in documents according to the author of the comment.

Sub ColorCodeComments() 
 Options.CommentsColor = wdByAuthor 
End Sub
Show: