![]() |
#5
|
||||
|
||||
![]()
Try:
Code:
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean) With ContentControl Select Case .Title Case "Rating" Select Case .Range.Text Case "Unsatisfactory": .Range.Cells(1).Shading.BackgroundPatternColor = 4739264 Case "Satisfactory With Improvements Needed": .Range.Cells(1).Shading.BackgroundPatternColor = 5232127 Case "Satisfactory": .Range.Cells(1).Shading.BackgroundPatternColor = 5880731 Case Else: .Range.Cells(1).Shading.BackgroundPatternColorIndex = wdNoHighlight End Select Case "Risk" Select Case .Range.Text Case "High": .Range.Cells(1).Shading.BackgroundPatternColor = 4739264 Case "Moderate": .Range.Cells(1).Shading.BackgroundPatternColor = 5232127 Case "Low": .Range.Cells(1).Shading.BackgroundPatternColor = 5880731 Case Else: .Range.Cells(1).Shading.BackgroundPatternColorIndex = wdNoHighlight End Select Case Else End Select End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
turnquistcm | Word | 2 | 05-03-2017 07:05 PM |
![]() |
Timbo | Word | 1 | 11-07-2013 05:14 AM |
![]() |
ntropey87 | Word VBA | 4 | 04-20-2013 11:19 AM |
add values to dropdown selections and calculate | guyhs | Word | 7 | 10-24-2012 05:11 PM |
Template: group dropdown selections | mfoe33 | Word | 0 | 10-15-2012 02:58 AM |