#1
|
|||
|
|||
Trying to hide only colored characters on my files
Hello,
I have many files with both colored (many different colors) and black (automatic) text and I want to replace to “hidden” all colored characters. It seems simple enough but, beyond being new to VBA, I just can’t get it to work. I’m using If (.Color <> wdColorAutomatic) And _ (.Color <> wdColorBlack) Then In my code. It seems to be a feasible way to go but. . . Any help and/or advice would be greatly appreciated. Thank you in advance. |
#2
|
||||
|
||||
The simplest way to go about this in a multi-colour document is to first hide all text, then use Find/Replace to unhide just the colour(s) you're interested in. If there's more than one colour to unhide, you'd do them sequentially.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thank you, Macropod!
I'll try that and will let you know. Best regards. |
#4
|
|||
|
|||
Indeed, it worked like a charm!
Thanks again, Macropod; your help is much appreciated! |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange Characters appear when selecting SHOW ALL NON PRINTING CHARACTERS | ann Amber | Word | 1 | 08-01-2015 08:06 PM |
How to Hide/Un-hide a worksheet based on cell on another sheet. | easton11 | Excel Programming | 1 | 06-02-2015 12:07 PM |
How to hide text in the plus symbol "+", like in *.chm files | Alexis | Word | 4 | 06-02-2013 12:04 PM |
colored background to text | userman | Word | 2 | 09-26-2012 01:52 AM |
Junk characters (box-like characters) in Word file | Sashikala | Word | 1 | 04-20-2010 02:03 PM |