![]() |
|
#1
|
|||
|
|||
![]() The user does not want to see the title but the title contains unique text that is the "marker" to identify the section that might need to be deleted with a macro. It can't be deleted manually by the user as the text is in a protected section that is read-only. I've not given all the details because I did not want to get into to all the whys and wherefores and just muddy the water when all I wanted was to know how to programmatically get the background color so the font color of the text would be the same and would disappear even if the user changed the background cover. |
#2
|
||||
|
||||
![]() Quote:
{IF{DOCPROPERTY MyProp}= 1 "Conditional Content to Show"} The macro you're using to drive the process would then only need something like: Code:
With ActiveDocument .CustomDocumentProperties("MyProp").Value = 0 .Fields.Update End With Code:
With ActiveDocument .CustomDocumentProperties("MyProp").Value = 1 .Fields.Update End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
background color, font color |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change excel background color, strange... | sojiro | Excel | 7 | 04-18-2018 10:07 AM |
Style Font Color: Background 1 | gmgj | Word | 3 | 12-20-2017 04:00 PM |
Advanced Font Color Manipulation In Word: Inserting another color than the surrounding text | stuartg | Word | 1 | 02-20-2017 12:38 AM |
![]() |
cc3125 | Word | 1 | 10-26-2015 06:44 PM |
Font Color Question//.Replacement.Font.Color = 12611584 | rsrasc | Word VBA | 3 | 09-05-2015 09:03 PM |