![]() |
#3
|
|||
|
|||
![]()
If it is a content control you have to use the OnExit event in the ThisDocument module;
Code:
Private Sub Document_ContentControlOnExit(ByVal CC As ContentControl, Cancel As Boolean) Select Case CC.Range.Text Case "Critical" CC.Range.Shading.BackgroundPatternColorIndex = wdRed CC.Range.Font.ColorIndex = wdWhite Case "Medium" CC.Range.Shading.BackgroundPatternColorIndex = wdYellow CC.Range.Font.ColorIndex = wdBlack Case "Low" CC.Range.Shading.BackgroundPatternColorIndex = wdGreen CC.Range.Font.ColorIndex = wdWhite End Select End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
boward57 | Office | 2 | 10-06-2015 06:53 PM |
text based on Combo box selection | rosscortb | Word VBA | 3 | 03-16-2015 06:57 PM |
Combo Box Content Control Calculate on selection help | ciresuark | Word | 0 | 03-06-2015 01:49 PM |
![]() |
choy | Word | 3 | 08-01-2012 09:12 PM |
How can I change the colors of cells automatically based on Job Completion? | Learner7 | Excel | 0 | 07-06-2010 10:47 PM |