View Single Post
 
Old 10-03-2014, 11:44 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Something like this:

Code:
Sub DDOnExit()
ActiveDocument.Unprotect
   Select Case ActiveDocument.FormFields("Dropdown1").Result
     
        Case "Positive": Selection.Cells(1).Shading.BackgroundPatternColorIndex = wdBrightGreen
        Case "Negative": Selection.Cells(1).Shading.BackgroundPatternColorIndex = wdDarkRed
     
  End Select
  ActiveDocument.Protect wdAllowOnlyFormFields, True
End Sub
Set DDOnExit to run "OnExit" from the dropdown. Assumes the dropdown is named "Dropdown1"
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote