Quantcast
Channel: Tech Support Guy
Viewing all articles
Browse latest Browse all 29110

Highlight texts with different colors in MS Word using VBA

$
0
0
Hi Friends,

Firstly please refer to this expired thread: http://forums.techguy.org/business-a...fic-words.html

Now my question/problem - I have many words (say approx 25-30 words) to highlight and I need different colors for each of them, preferably light colors.. so I could read these words after highlighting.

Now I cannot use HighlightColorIndex in VBA coding as it limits with very few colors..

How do I achieve this in vba coding for MS Word? I searched internet and found that we could possibly use RGB values.. like shading option, but could not find a way to do it. I mean, the text fill or shading tool has many colors. how can we use these in VBA.

another note: suggestions using find and replace would be best, because when I use arrays in my code.. I could not include special characters such as ( " ) double quotation marks or trademark symbols..

User Interface: MS Word 2007 in Windows 7

Thanks in advance!

Viewing all articles
Browse latest Browse all 29110

Trending Articles