H
hermithead
Hi, How do you make the following code Protect only? This code will
protect an unprotected form AND unprotect a protected form. I just
need it to Protect.
Sub ProtectForm()
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
Else
ActiveDocument.Unprotect Password:=""
End If
End Sub
protect an unprotected form AND unprotect a protected form. I just
need it to Protect.
Sub ProtectForm()
If ActiveDocument.ProtectionType = wdNoProtection Then
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, _
NoReset:=True
Else
ActiveDocument.Unprotect Password:=""
End If
End Sub