How to write conditional statements in Word

D

DRAFT

I need to add a conditional statement to a word template. I need to one drop
down box to show a value based on a selection from a different drop down box.
 
G

Greg Maxey

You could run an on exit macro from the first dropdown to set the value of
the second:

Sub ScratchMacro()
Dim oDoc As Document
Set oDoc = ActiveDocument

If oDoc.FormFields("Dropdown1").Result = "Condition A" Then
oDoc.FormFields("Dropdown2").Result = "Alpha"
End If
End Sub
 
Top