Hi! I've tried this to act on the words highlighted in yellow in a Word doc but I got an error. What's wrong with the second part of the condition? Is color not yet implemented? Thanks. If $oRange.HighlightColorIndex <> 0 And $oRange.HighlightColorIndex.Color = 0xFFFF00 Then ... EndIf