A family of Microsoft word processing software products for creating web, email, and print documents.
The following VBA will add a highlight color to all selected text.
Sub ApplyHighlightColor()
'since the find/replace only applies a single highlight color you
'must first set the default highlight color to apply
Options.DefaultHighlightColorIndex = wdBrightGreen
'the following assumes the selected text does not
'already contain a highlight
With Selection.Find
.ClearFormatting
.Highlight = False
.Replacement.ClearFormatting
.Replacement.Highlight = True
.Execute Replace:=wdReplaceAll
End With
End Sub
The following link provides the enumeration values for highlights. There are not RGB or color code values for highlight colors in the object model.
https://msdn.microsoft.com/en-us/library/Bb237561(v=office.12).aspx
Hope this helps