How to protect a text form field

C

Charlie

I have a form that contains multiple Text Form Fields for
input. The form itself is protected so my users won't
change it. After entering information into the fields I
want the user to save the document as a read-only, so no
one else can modify it and print out a hard copy. When
opening the document later as read-only the Text Form
Fields still allow modification, and printing of the
modified document, although they can't resave it under the
original name. How can I restrict the document so NOTHING
on the document can be modified unless they have the
modify password?
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Use the following commands in a macro

Dim aff As Field
ActiveDocument.Unprotect
For Each aff In ActiveDocument.Fields
If aff.Type = wdFieldFormTextInput Then
aff.Unlink
End If
Next aff
ActiveDocument.Protect wdAllowOnlyFormFields


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
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