![]() |
#8
|
||||
|
||||
![]() Quote:
Quote:
Quote:
• 15 blue, 15 red, and so on, then padding out the arrWords array with empty elements for keyword groups that have less than 15 items; or • only the required number of colour definitions to match what's in the arrWords array, either of which could be used in conjunction with specifying a range of values for 'i' in the Select Case statement. For example: Code:
Select Case i Case 0 - 14: RGB = wdColorRed Case 15 - 29: RGB = wdColorOrange Case 30 - 44: RGB = wdColorYellow Case 44 - 59: RGB = wdColorGreen Case 60 - 74: RGB = wdColorBlue End Select
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I am trying to delete text of any format between two bold, recurring keywords or symbols | qubie | Word VBA | 8 | 03-04-2020 03:20 PM |
![]() |
David Lee | Word | 6 | 08-16-2015 10:46 AM |
![]() |
navyguy | Word | 2 | 01-03-2014 12:48 PM |
Trying to highlight pasted text in a macro | goldengate | Word VBA | 0 | 09-14-2010 09:41 PM |
find - reading highlight - highlight all / highlight doesn't stick when saved | bobk544 | Word | 3 | 04-15-2009 03:31 PM |