This is my code in a MS Word 2003 Macro.
I can unprotect the MS Word document but when I click the button a second time, first I get a Protection dialog box with the Forms radio button grayed out. I am not using any password and when I click the OK button, I get the message: "The ToolsProtectDocument statement is currently disabled". I could not find anything anywhere on the internet regarding this problem.
Is there any way I can enable it?
Any help would be greatly appreciated.
' Protect and unprotect document
Dim oDoc As Document
Set oDoc = ActiveDocument
On Error GoTo ErrMess
If oDoc.ProtectionType = wdNoProtection Then
oDoc.Protect Type:=wdAllowOnlyFormFields, noreset:=True
MsgBox Err.Description, vbInformation
We are giving away 'Black Panther' swag!
Four lucky readers will be taking home *Marvel*ous "Black Panther" prizes, including magazines autographed by the King of Wakanda himself! Giveaway ends Feb. 25, 2018.