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
 
Top