Options.DefaultHighlightColorIndex property (Word)

Returns or sets the color used to highlight text formatted with the Highlight button (Formatting toolbar). Read/write WdColorIndex.


expression. DefaultHighlightColorIndex

expression Required. A variable that represents an Options object.


This example sets the default highlight color to bright green. The new color doesn't apply to any previously highlighted text.

Options.DefaultHighlightColorIndex = wdBrightGreen

This example returns the current default highlight color index.

Dim lngTemp As Long 
lngTemp = Options.DefaultHighlightColorIndex

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.