Text Form fields within a protected document

D

Daniel Scott

I have put text form fields in a protected document. The
problem is that if those form fields are populated, and
then the document is unlocked, and then locked again, all
those text form fields go back to blank. Is there anyway
to tell the document or form field that once populated not
to erase upon locking and unlocking the document??

Daniel Scott
National Coordinator
Fidelity National Financial
 
G

Guest

Had the same problem a while ago and found these two macros on Microsoft's Knowledge Base which addressed the exact issue. These need to reside in a global template. Fixed our problem, hope it fixes yours.

Sub ToolsProtectUnprotectDocument(
If ActiveDocument.ProtectionType = wdNoProtection The
ActiveDocument.Protect Type:=wdAllowOnlyFormFields,
NoReset:=Tru
Els
ActiveDocument.Unprotect Password:="
End I
End Su

Sub ProtectForm(
If ActiveDocument.ProtectionType = wdNoProtection The
ActiveDocument.Protect Type:=wdAllowOnlyFormFields,
NoReset:=Tru
Els
ActiveDocument.Unprotect Password:="
End I
End Su
 

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