D
DGjr.
Can this be done with fewer lines? I want to populate "Text1" based on the
value in "DropDown1".
Sub AlphaChoice()
With ActiveDocument
If .FormFields("DropDown1").Result = "A" Then
.FormFields("Text1").Result = "1"
ElseIf .FormFields("Dropdown1").Result = "B" Then
.FormFields("Text1").Result = "2"
ElseIf .FormFields("Dropdown1").Result = "C" Then
.FormFields("Text1").Result = "3"
ElseIf .FormFields("DropDown1").Result = " " Then
.FormFields("Text1").Result = " "
End If
End With
End Sub
value in "DropDown1".
Sub AlphaChoice()
With ActiveDocument
If .FormFields("DropDown1").Result = "A" Then
.FormFields("Text1").Result = "1"
ElseIf .FormFields("Dropdown1").Result = "B" Then
.FormFields("Text1").Result = "2"
ElseIf .FormFields("Dropdown1").Result = "C" Then
.FormFields("Text1").Result = "3"
ElseIf .FormFields("DropDown1").Result = " " Then
.FormFields("Text1").Result = " "
End If
End With
End Sub