![]() |
|
|
|
#1
|
||||
|
||||
|
Have a look at how my code initialises StrTitle.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
||||
|
||||
|
Perfect, will do. I also notice that you have code for checking that the column number is in bounds, so I'll add that, too.
Do you have a way for the macro to read the line (paragraph) just before the table? If so, I could put the parameters there. |
|
#3
|
||||
|
||||
|
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?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#4
|
||||
|
||||
|
Quote:
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 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 |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Macro to highlight a list of words
|
bakerkr | Word VBA | 4 | 10-19-2017 02:23 PM |
Word 2010 VBA Print Macro - Specified Sections
|
Benbon | Word VBA | 3 | 03-30-2017 02:31 PM |
Macro Question: Need help making a macro to highlight the first word in every sentence
|
LadyAna | Word | 1 | 12-06-2014 10:39 PM |
Macro to highlight words
|
bertietheblue | Word VBA | 9 | 07-01-2013 12:39 PM |
| find - reading highlight - highlight all / highlight doesn't stick when saved | bobk544 | Word | 3 | 04-15-2009 03:31 PM |