I want to write code so that if a word in a variable in the vba behind word is equal to a word in the word document, it changes that word in the document to bold.
How would i do that?
Printable View
I want to write code so that if a word in a variable in the vba behind word is equal to a word in the word document, it changes that word in the document to bold.
How would i do that?
There is a .Find method that will do the search, but the easiest way to "find" the methods/functions used by
Word to do this is to record a macro doing what you want to program. Then check the Modules in the VBA IDE
and you will see how Word does it.