I would recommend that you use dropdown form fields - see
http://gregmaxey.mvps.org/Linked_DropDown_Fields.htm which demonstrates how
to populate one DD field based on the result of another. If you want to
disable the other field entirely (in the following example when 'D' is
selected) you need an extra line for each case then a few more lines at the
end to enable or disable the field
Sub OnExitDDListA()
Dim oDD As DropDown
Dim bEnable As Boolean
Set oDD = ActiveDocument.FormFields("SecondaryDD").DropDown
'Clear previous list
oDD.ListEntries.Clear
'Repopulate list based on user selection
Select Case ActiveDocument.FormFields("PrimaryDD").Result
Case "A"
With oDD.ListEntries
.Add "Apples"
.Add "Apricots"
.Add "Artichokes"
End With
bEnable = True
Case "B"
With oDD.ListEntries
.Add "Blueberries"
.Add "Beets"
.Add "Brocolli"
End With
bEnable = True
Case "C"
With oDD.ListEntries
.Add "Cherries"
.Add "Celery"
.Add "Cilantro"
End With
bEnable = True
Case "D"
bEnable = False
End Select
With ActiveDocument
.Unprotect Password:=""
.FormFields("SecondaryDD").Select
With Dialogs(wdDialogFormFieldOptions)
.Enable = bEnable
.Execute
End With
.Protect NoReset:=True, Password:="", _
Type:=wdAllowOnlyFormFields
End With
End Sub
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site
www.gmayor.com
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>