PDA

View Full Version : Expand or Collapse with Drop Down Box in Word 2010



Loss1003
04-02-2015, 07:00 AM
The following code is not working as I'm trying to Expand or Collapse with Drop Down Box in Word 2010


Sub Dropdown4()


If FormFields("Dropdown4").DropDown.Value = "Observed" Then
ActiveDocument.Bookmarks("RiskTData").Range.Font.Hidden = False
End If


If FormFields("Dropdown4").DropDown.Value = "Not Applicable" Then
ActiveDocument.Bookmarks("RiskTData").Range.Font.Hidden = True
End If

If FormFields("Dropdown4").DropDown.Value = "Not Observed" Then
ActiveDocument.Bookmarks("RiskTData").Range.Font.Hidden = True
End If

End Sub


Please assist with any errors per the above code. Thank you.

Loss1003
04-02-2015, 01:00 PM
anyone have any ideas or suggestions??

gmayor
04-03-2015, 02:40 AM
Look at your similar thread at http://www.msofficeforums.com/word-vba/25605-help-drop-down-box-expand-collapase.html
Please cross post messages correctly to avoid unneccessary duplication of effort.

gmaxey
04-03-2015, 04:55 AM
There are alternative ways other than hiding text. See: http://gregmaxey.mvps.org/word_tip_pages/toggle_data_display.html