Options.CommentsColor property (Word)

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

Important

This property has changed. The Options.CommentsColor property is still available but there will be no visible effect in the Redesigned Comments experience. However, the command will apply the CommentsColor property to the Word options so if the current user reverts to the previous commenting experience, the comment thread outline color will change based on the previous setting.

Syntax

expression. CommentsColor

expression Required. A variable that represents an Options object.

Example

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

See also

Options Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.