Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Form Fields
Is it at all possible to create a double drop down from field ....
I am trying to create a drop down that will narrow the choices to the second drop down.... Example : If you choose chocolat then the second drop down will not have any pepper and salt to it Thanks for your help |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Form Fields
Yes it is possible. Run a macro similiar to the following on entry to the
subordinate formfield: Sub SetDDValue() Dim oFld As FormField Set oFld = ActiveDocument.FormFields("Dropdown2") Select Case ActiveDocument.FormFields("Dropdown1").Result Case "Chocolate" oFld.DropDown.ListEntries.Add ("Sugar") oFld.DropDown.ListEntries.Add ("Milk") oFld.DropDown.ListEntries.Add ("Cocoa") Case "Beans" oFld.DropDown.ListEntries.Add ("Salt pork") oFld.DropDown.ListEntries.Add ("Onions") Case Else 'Do Nothing' End Select End Sub -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. Dyno wrote: Is it at all possible to create a double drop down from field .... I am trying to create a drop down that will narrow the choices to the second drop down.... Example : If you choose chocolat then the second drop down will not have any pepper and salt to it Thanks for your help |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Form Fields
Thanks for your help .....Much appreciated
"Greg Maxey" wrote in message ... Yes it is possible. Run a macro similiar to the following on entry to the subordinate formfield: Sub SetDDValue() Dim oFld As FormField Set oFld = ActiveDocument.FormFields("Dropdown2") Select Case ActiveDocument.FormFields("Dropdown1").Result Case "Chocolate" oFld.DropDown.ListEntries.Add ("Sugar") oFld.DropDown.ListEntries.Add ("Milk") oFld.DropDown.ListEntries.Add ("Cocoa") Case "Beans" oFld.DropDown.ListEntries.Add ("Salt pork") oFld.DropDown.ListEntries.Add ("Onions") Case Else 'Do Nothing' End Select End Sub -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. Dyno wrote: Is it at all possible to create a double drop down from field .... I am trying to create a drop down that will narrow the choices to the second drop down.... Example : If you choose chocolat then the second drop down will not have any pepper and salt to it Thanks for your help |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Form text fields are disappearing during a merge to new document. | Mailmerge | |||
Default text shown in form fields | Microsoft Word Help | |||
Replace mergefields with form fields | Mailmerge | |||
Having multiple form fields automatically updated | Microsoft Word Help | |||
Email a protected document that contains Text Form Fields | New Users |