View Single Post
 
Old 04-07-2016, 02:06 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Here's some code to get you started. Note that I've included a reference to 'chbx_yes2', but the corresponding checkbox lacks the bookmark name.
Code:
Sub OnExitCB1B()
With ActiveDocument
  Select Case .FormFields("drop_list").Result
    Case "A"
      .FormFields("Text1").Result = "xxx"
      With .FormFields("Dropdown_yes_no")
        .DropDown.Value = .DropDown.Default
        .Enabled = False
      End With
      With .FormFields("chbx_yes2")
        .CheckBox.Value = False
        .Enabled = False
      End With
      With .FormFields("chbx_no2")
        .CheckBox.Value = False
        .Enabled = False
      End With
    Case "B"
      .FormFields("Dropdown_yes_no").Enabled = True
      .FormFields("chbx_yes2").Enabled = True
      .FormFields("chbx_no2").Enabled = True
    Case "C"
      .FormFields("Dropdown_yes_no").Enabled = True
      .FormFields("chbx_yes2").Enabled = True
      .FormFields("chbx_no2").Enabled = True
  End Select
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote