![]() |
|
#1
|
||||
|
||||
![]()
The code looks as compact as you could possibly make it but there could be improvements made.
First, the MsgBox question will recolour the entire document range if you ever choose yes because oRng wasn't redefined to limit itself to just the selection. You probably meant to use the selection {or ActiveDocument.Range(varParts(0), varParts(1))} instead of oRng in this line oRng.Font.TextColor = wdColorBlack
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feedback suggestions not using default browser | MC147 | Office | 0 | 01-28-2023 06:21 AM |
Form Letter Help/Suggestions | Sociopsychosis | Word | 2 | 10-18-2016 05:52 AM |
![]() |
FedSteve | Word | 1 | 09-01-2016 11:23 PM |
![]() |
JeffL | Word | 4 | 12-28-2013 01:12 PM |
![]() |
veed | Drawing and Graphics | 3 | 04-19-2013 08:36 AM |