Capturing Form Values

O

obts1434

Any idea how I would capture, using VBA, the value selected in a Drop-Down Form Field

Would like to update a Text Form Field with a certain numeric value depending upon what the user selects in the dropdown.
 
P

Peter Hewett

Hi obts1434

If you want the numeric value of the selected listbox item then you can use this:
ActiveDocument.FormFields("Dropdown1").DropDown.Value

if you want the actual value, use this:
ActiveDocument.FormFields("Dropdown1").Result

HTH + Cheers - Peter
 
J

JB

obts1434 said:
Any idea how I would capture, using VBA, the value selected in a Drop-Down Form Field?

Would like to update a Text Form Field with a certain numeric value depending upon what the user selects in the dropdown.
Is this a VBA userform your on about here?

J
 
O

obts1434

Actually, it was a form inserted into the document using the toolbar buttons in Word. But it looks like the next post down answers my question. Thanks!!
 

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

Top