![]() |
#1
|
|||
|
|||
![]()
Hi Hi
I need help to write a macro to switch the following text color: In a document, there are text with many different font color: One macro (macro1) to switch all text to white font color Another macro (macro2) to Reverse (macro1) to the original font color, can be red, black etc. Thanks thanks. Last edited by elaineAda; 01-29-2023 at 03:04 AM. |
#2
|
||||
|
||||
![]()
This is actually surprisingly complicated as there are 256x256x256 possible colours and lots of places that colour could be applied (inline text, text boxes, comments, footnotes, headers, footers, smart art, tables, paragraph shading etc)
The first macro would be simpler but it would likely remove any 'differences' that would be required for the second macro to restore the original colours. If your documents were well structured and either used theme palette colours OR character styles to set the colours then you might get the desired result but that is kind of unlikely.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
poetofpiano | Word VBA | 2 | 03-14-2022 08:43 AM |
Power point Macro for random symbols/text/color | jodyto | PowerPoint | 0 | 10-09-2019 01:39 AM |
![]() |
jackcoletti | Word | 3 | 02-01-2017 08:10 AM |
![]() |
kristib | Word VBA | 4 | 11-15-2015 02:42 PM |
![]() |
rohanrohith | Word VBA | 3 | 11-27-2014 01:08 PM |