D
Darko H
Hi Jason,
I was looking earlier today at this site for a solution to a very similar problem but unluckily there was no answer to your question.
My problem was that in the protected Word form document I was changing the content of the header and footer and after that when trying to re-protect a document back I was getting the same error "The ToolsProtectDocument statement is currently
disabled". After some time I realised I had to select any form cell in the main document body before trying to protect the document again and this has worked. Here it is, the two liner I am talking about :
....
ActiveDocument.FormFields(1).Select
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
....
If not too late, I hope this will help you or maybe somebody else.
Cheers
Darko
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
I was looking earlier today at this site for a solution to a very similar problem but unluckily there was no answer to your question.
My problem was that in the protected Word form document I was changing the content of the header and footer and after that when trying to re-protect a document back I was getting the same error "The ToolsProtectDocument statement is currently
disabled". After some time I realised I had to select any form cell in the main document body before trying to protect the document again and this has worked. Here it is, the two liner I am talking about :
....
ActiveDocument.FormFields(1).Select
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
....
If not too late, I hope this will help you or maybe somebody else.
Cheers
Darko
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com