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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Fields and protection

Status
Not open for further replies.

Hameedullah

Programmer
Aug 12, 2002
29
0
0
AU
Hi,

I have a mail merge document in MS Word 2003 in which I use several form fields to be filled manually as well.

When a user opens the document (well, the system generates the document), they have to enable macros for the merge to work, once the data is retrieved from external source and the document is merged, then I use VBA to set the protection:
Code:
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True, Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit the form fields, although I have used wdAllowOnlyFormFields.

You are either the slave of what made men or what men made.
 
Got me stumped there. Something else must be going on because from the information in your post, users should be able to use the formfields.

faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top