accessing form fields by name

N

Nathan Franklin

Hey guys,

i am just wandering how i can access a form field by its name?

I am using vb.net and I only seem to be able to access a field by its
bookmark name. Does this mean I cant actually set the value of the field
with .Result, i can only replace the field with a value? Is there any other
way to do it?

Thanks

nathan
 
D

Doug Robbins - Word MVP

Use

ActiveDocument.FormFields("[bookmarkname]").Result

to get or set the contents of the formfield.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

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

Top