Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protected Form Question(Help - I'm a newbie :-) ) 1

Status
Not open for further replies.

Elena

Technical User
Oct 20, 2000
112
US
I need to be able to automatically fill in sections on a protected form from a table located elswhere (doesn't matter, yet). The fields in the form seem to designated by bookmarks, but when I open the form and go to the bookmark, I can't input any data, because the form is protected. I think that is because I am trying to change the bookmark and not the text within the field. How do I access the text?

Here's what I have tried.

Selection.GoTo what:=wdGoToBookmark, Name:="TechnicalContact"
Selection.TypeText Text:="name"

Any tips would be appreciated.

Thanks,

Elena
 
Check out Tools | Protect Document | Forms.

I assume you're talking about Word?

 
I'm sorry I wasn't more clear. Yes, I'm talking about Word. This document is already protected as a form. I just need to fill in the fields on the form automatically with text. Some of the fields are pull downs, so I need to be able to choose those automatically also.

Thanks for the response.

Best regards,

Elena
 
Try something like this:
Code:
WordBasic.SetFormResult "TechnicalContact", "name"
Hope this helps!
 
To auto pick from a list box:
Code:
WordBasic.SetFormResult "BookMarkName", ListIndex
 
Thanks for the tips. That seems to work great!

Elena
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top