drop down form field and VBA

A

Anthony

I created a template with a drop down form field. (not a UserForm)
Can I retrieved the user-selected item using VBA.

Anthony
 
F

Fumei2 via OfficeKB.com

ActiveDocument.FormFields("name").Result
I created a template with a drop down form field. (not a UserForm)
Can I retrieved the user-selected item using VBA.

Anthony
 
A

Anthony

ActiveDocument.FormFields("myname").Result

Error: Doesn't exists (Error5941) in collection

I set label and titel properties to 'myname'.

Anthony
 
M

macropod

Hi Anthony,

Obviously, you need to change "myname" to whatever bookmark name is assigned to your formfield - see under the formfield's
properties. If the formfield doesn't have a bookmark name, give it one.
 
A

Anthony

Thx.

Anthony


macropod said:
Hi Anthony,

Obviously, you need to change "myname" to whatever bookmark name is
assigned to your formfield - see under the formfield's properties. If the
formfield doesn't have a bookmark name, give it one.

--
Cheers
macropod
[Microsoft MVP - Word]


Anthony said:
ActiveDocument.FormFields("myname").Result

Error: Doesn't exists (Error5941) in collection

I set label and titel properties to 'myname'.

Anthony
 

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