View Single Post
 
Old 05-26-2020, 08:46 AM
alex100 alex100 is offline Windows 7 64bit Office 2016
Advanced Beginner
 
Join Date: May 2020
Posts: 79
alex100 is on a distinguished road
Default

Very nice, thank you! I have two questions, please...

1. how can I use RGB colors for highlighting? I tried using "Options.DefaultHighlightColorIndex = RGB(190, 190, 190)" but without any success;

2. how can I add an extra condition to the find function so that it will only find (and highlight) those keywords that have not already been highlighted? I tried using ".Font.HighlightColorIndex = wdNoHighlight", but once again, without any results. I am trying to avoid double-highlighting, as for example when I want to highlight keyword "great music" in green and keyword "music" in red. Without a stop in place, you would get "great" highlighted in green, and "music" in red. I'd like both words ("great music") to be shown in green, as a single keyword.

Alex
Reply With Quote