Link to home
Start Free TrialLog in
Avatar of ecuguru
ecuguru

asked on

MS Word, Use Visual Basic to Highlight words?

I've got a VB array of words that are important to me.
I'd like to figure out some sort of a visual markup that lets the user identify those words easily.  I was thinking that highlight would be a good use.  

1) Given a list of words, is there a way to highlight them all in a given word document?

2) When the user goes to close the document, it will probably ask them if they want to save the changes they made to the document even if they didn't make any, because of the highlighting.  I don't really want this to happen, so does anyone also know the line of code for clearing all highlighting?  Or even better, clearing the highlighting the other macro made?  Maybe making an undo is a better course..
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ecuguru

Did GrahamSkan's macro resolve your question?  If so, please close out and assign points.  Thank you.

Joanne Orzech
EE Zone Advisor