Have a look at this thread where someone wanted to do something similar
https://www.msofficeforums.com/word-...olor-when.html
You should be able to adapt that code to your document or you will need to post a sample document if you need more assistance.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|