S
SatishP
Hi All,
I protect my word document programmatically. Later if I try to edit the
document by trying to delete some content or add some content, the protection
task pane appears and shows a 'Stop Protection' button in it. However we do
not want to give our users the chance to unprotect the document as we protect
the document when there is authorization issue.
I want to disable this auto-appearance of the Protection Task Pane when user
tries to edit a protected document. I read that if we override the
ToolsProtect() macro, this is possible. But it doesn't work in my case. I
overrode the macro as follows:
Sub ToolsProtect()
MsgBox "Document is Read-Only"
End Sub
But the task pane pops out as soon as the user tries to edit. Is this no
more supported in Word 2007?
I protect my word document programmatically. Later if I try to edit the
document by trying to delete some content or add some content, the protection
task pane appears and shows a 'Stop Protection' button in it. However we do
not want to give our users the chance to unprotect the document as we protect
the document when there is authorization issue.
I want to disable this auto-appearance of the Protection Task Pane when user
tries to edit a protected document. I read that if we override the
ToolsProtect() macro, this is possible. But it doesn't work in my case. I
overrode the macro as follows:
Sub ToolsProtect()
MsgBox "Document is Read-Only"
End Sub
But the task pane pops out as soon as the user tries to edit. Is this no
more supported in Word 2007?