How do I create another form field to appear when a certain drop .

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to create a form using the forms editor in work. I have a
few selections in the drop down boxes. Wnen one selection is choosen, I
would like word to pop up another form field next to it(further clarifies the
answer-ie. If "yes" then the next field explains why it is "yes").
 
Have a macro that runs on exit from the dropdown formfield that sets the
..Result of a text formfield based on the value of the dropdown. The
following macro does that sort of thing using values stored as autotext
entries:

' Macro created 15-11-97 by Doug Robbins to add the address corresponding to
a drop down name

Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown
Company = myDrop.ListEntries(myDrop.Value).Name
Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Company).Value
ActiveDocument.FormFields("Text1").Result = Address


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top