How do I search a doc and run code on finding a word?
How would I write a search that goes all through a Word doc and if a particular word is found, say "Example", then a block of code is run once before the search goes on to find the next instance of that word?
I know it must be simple but I can't seem to work it out. Thank you.
|