Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
Microsoft Word field and Drop Down box question
I would like to activate a drop down box in a field when the field prior has
a specific result. In other words if prev field = a then use drop down box a if prev field = b then use drop down box b etc. any tips how I can do this in Microsoft Word |
#2
Posted to microsoft.public.word.tables
|
|||
|
|||
Microsoft Word field and Drop Down box question
It might be better to change the contents of the dropdown based on the
previous selection. Run a macro something like this on exit from the first field: Sub OnExitText1() Dim oFF As FormFields Set oFF = ActiveDocument.FormFields Select Case oFF("Text1").Result Case Is = "a" With oFF("DropDown1").DropDown.ListEntries .Clear .Add "Apple" .Add "Peach" .Add "Pear" End With Case Is = "b" With oFF("DropDown1").DropDown.ListEntries .Clear .Add "Corn" .Add "Beans" .Add "Rice" End With Case Else oFF("DropDown1").DropDown.ListEntries.Clear End Select End Sub On Apr 17, 11:08 am, Andrea wrote: I would like to activate a drop down box in a field when the field prior has a specific result. In other words if prev field = a then use drop down box a if prev field = b then use drop down box b etc. any tips how I can do this in Microsoft Word |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Drop down form field added but nolist in drop down | Microsoft Word Help | |||
Drop Down Menus - Fun Question | Tables | |||
Microsoft Word - Delete question | Microsoft Word Help | |||
How to add drop down list in Microsoft Word templet | Page Layout | |||
The drop down form field is not showing drop downs. Why? | Microsoft Word Help |