Text Form fields within a protected document

  • Thread starter Thread starter Daniel Scott
  • Start date Start date
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
 
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
 
Back
Top