![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
In my ContentControlOnExit event, I can update the contentControl (a Dropdown Box in my scase) font color of the contentcontrol that is triggering the event like this without any issues like this: Code:
ContentControl.Range.Font.TextColor = RGB(255, 165, 0) 'Orange Code:
ActiveDocument.SelectContentControlsByTitle("passfail").Item(1).Range.Font.ColorIndex = RGB(255, 165, 0)'Orange
I can set the text of the control without any issues like this: Code:
ActiveDocument.SelectContentControlsByTitle("passfail").Item(1).Range
Basically, I have a compliance review document that has scoring in other drop-down boxes. When the user is done with the scoring, I am adding up the score and setting a dropdown box with "Passed", "Needs Improvement", or "Faile" And I want to update the color of tha dropdown to Green/Orange/Red accordingly. I can update the font color of other dropdown boxes WHEN the ContentControlOnExit is triggered for THAT dropdown box without any issues. It's just when I try to update the font color of a DIFFERENT Dropdown box on the document that is not the active control. What am I doing wrong? |
| Tags |
| dropdown, font color |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
HelpViewer doesn't work
|
dherr | Office | 1 | 03-27-2015 07:44 AM |
| (.left property) and (LockAspectRatio) don't work | exceere | Excel Programming | 3 | 06-13-2014 05:03 AM |
alt+numeric doesn't work
|
Kungen | Word | 3 | 12-02-2011 11:25 AM |
| CNTL+X doesn't work | ACA | Office | 3 | 09-19-2011 10:42 AM |
Word 2007 Font Color Doesn't Work
|
nnicko | Word | 2 | 04-16-2010 01:21 PM |