View Single Post
 
Old 10-12-2018, 11:17 AM
mdbguy mdbguy is offline Windows 10 Office 2013
Novice
 
Join Date: Oct 2018
Posts: 2
mdbguy is on a distinguished road
Default 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!
Reply With Quote