Format text in Word to look like code in VBA editor
I have miles of Excel VB code written by a long-gone predecessor. It's bad. Needs to be refactored.
I like to copy code into Word so it's easier to manipulate. But I'd like to colorize it like VB code, comments green, keywords blue, that sort of thing. Being unfamiliar with the Word object model, I thought I'd ask for a boost.
I need basic syntax to find all occurrences of a given string and change the color. I think I can handle the rest. Thanks so much!
|