L
lotsof questions
I have several form templates that need to be unprotected
and reprotected without losing the data typed into the
form fields...which can be found on the Microsoft
Knowledge Base.
The problem: when using the following, the template
reprotects itself, but does not apply the "password" to
protect the file. With all the code changes from 97 to
2000 software - is there something else that needs to be
added to get it to recognize the password? Assistance is
always appreciated....Best Regards
See below:
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
Else
ActiveDocument.wdProtect Password:="my password"
End If
End Sub
and reprotected without losing the data typed into the
form fields...which can be found on the Microsoft
Knowledge Base.
The problem: when using the following, the template
reprotects itself, but does not apply the "password" to
protect the file. With all the code changes from 97 to
2000 software - is there something else that needs to be
added to get it to recognize the password? Assistance is
always appreciated....Best Regards
See below:
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
Else
ActiveDocument.wdProtect Password:="my password"
End If
End Sub