Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

accessing form fields by name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Franklin - 16 May 2006 03:07 GMT
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
Doug Robbins - Word MVP - 16 May 2006 04:46 GMT
Use

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

to get or set the contents of the formfield.

Signature

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

> Hey guys,
>
[quoted text clipped - 8 lines]
>
> nathan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.