![]() |
|
#1
|
|||
|
|||
![]() The following code is not working as I'm trying to Expand or Collapse with Drop Down Box in Word 2010 Code:
Please assist with any errors per the above code. Thank you. |
#2
|
||||
|
||||
![]()
The dropdown values are numeric values which represent the positions of the texts in the list. So you would use
Code:
Sub Dropdown4() Select Case ActiveDocument.FormFields("Dropdown4").Dropdown.Value Case 1 ActiveDocument.Bookmarks("RiskTData").Range.Font.Hidden = False Case 2, 3 ActiveDocument.Bookmarks("RiskTData").Range.Font.Hidden = True Case Else End Select End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
![]()
There are alternative ways other than hiding text. See: http://gregmaxey.com/word_tip_pages/toggle_data_display.html
Ditto to Graham's advise on cross posting. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SPT | Word | 3 | 02-25-2015 05:04 AM |
How not disable expand/collapse | LVP | Word | 3 | 12-21-2014 12:12 PM |
![]() |
300zxmuro | Word | 1 | 02-27-2011 03:02 PM |
![]() |
Jamal NUMAN | Excel | 1 | 01-12-2011 07:59 PM |
Grouping - expand all | ejohns | Excel | 0 | 07-17-2009 07:15 AM |