View Single Post
 
Old 02-20-2020, 10:44 PM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Windows XP Office 2007
Competent Performer
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
That seems a whole lot more bother for the user than simply answering a few input box prompts. It's also more error-prone. How would the parameters be differentiated there, and what would you have in the paragraph for the colouring?
Well, the user is me, so I guess one person's bother is another's simplicity.

I envision a line containing text something like this or whatever is easy to read and easy to parse in the macro. I'd play with it a bit.
Code:
Parms: Col=3, Hdrs=0, RGB=215,199,244
For me, typing this once in the Word document is far easier that typing it in each time I call the macro. In the application at hand, I will be needing to re-highlight the table fairly often. With the parameters next to the table, I can do that with a single keyboard shortcut.

Also, if I had more than one table in the document, or even in different documents, the parameters would be set and could be different for each one.

If the macro doesn't find a line that has the right syntax, it would use the default values.

Last edited by Jennifer Murphy; 02-20-2020 at 10:52 PM. Reason: Typo
Reply With Quote