View Single Post
 
Old 03-08-2020, 12:55 PM
Gilvv Gilvv is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Oct 2016
Posts: 30
Gilvv is on a distinguished road
Default 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.
Reply With Quote