Home |
Search |
Today's Posts |
#1
|
|||
|
|||
drop down form fields
Is there a way I can have a user select an option in a drop down menu, and
have that selection change the results in other fields to predetermined values? |
#2
|
|||
|
|||
Yes. You can do it with a macro that runs on exit from the formfield.
Here is an example that sets the value of a table cell range based on the result in a formfield. You can easily adapt it to set the value of another formfield: Sub EvaluateFormFieldContent() ' ActiveDocument.Unprotect With ActiveDocument If .FormFields("MartialStatus").Result = "Yes" Then .Tables(1).Cell(1, 3).Range = "Skip to step 8" Else .Tables(1).Cell(1, 3).Range = "Skip to step 13" End If End With ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. beckster02 wrote: Is there a way I can have a user select an option in a drop down menu, and have that selection change the results in other fields to predetermined values? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Blank return for drop-down form fields | Microsoft Word Help | |||
How do I use a form then mailmerge without losing the form fields | Mailmerge | |||
Having multiple form fields automatically updated | Microsoft Word Help | |||
Size of Drop Down Form Fields | Microsoft Word Help | |||
Email a protected document that contains Text Form Fields | New Users |