Options.DefaultHighlightColorIndex property (Word)
Returns or sets the color used to highlight text formatted with the Highlight button (Formatting toolbar). Read/write WdColorIndex.
Syntax
expression. DefaultHighlightColorIndex
expression Required. A variable that represents an Options object.
Example
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
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.