StuckInTheMiddle
Programmer
I need to prevent my users from Printing when using word.
I can prevent them from doing so from the File->Print menu, but I can not seem to override the 'Print' button on the word toolbar (Hiding the toolbar is not an option).
An example of overriding the FilePrint is to create the following sub in a word module.
Sub FilePrint()
MsgBox "Not Allowed, sorry."
End Sub
[/color blue]
The Macro Recorder tells me that the 'Print' button on the toolbar calls ActiveDocument.PrintOut except trying to override this as
Sub PrintOut()
MsgBox "Not Allowed, sorry."
End Sub
[/color blue]
or
sub ActiveDocumentPrintOut[/color blue] or numerous other combinations has failed to work. I can't seem to find the Printout command listed in the built-in 'Word Commands' (under Tools>Macros>Macros in 'Word Commands'
Any help appreciated,
Thanks
(The more ASP.NET I do, the more Javascript I find myself using)
I can prevent them from doing so from the File->Print menu, but I can not seem to override the 'Print' button on the word toolbar (Hiding the toolbar is not an option).
An example of overriding the FilePrint is to create the following sub in a word module.
Sub FilePrint()
MsgBox "Not Allowed, sorry."
End Sub
[/color blue]
The Macro Recorder tells me that the 'Print' button on the toolbar calls ActiveDocument.PrintOut except trying to override this as
Sub PrintOut()
MsgBox "Not Allowed, sorry."
End Sub
[/color blue]
or
sub ActiveDocumentPrintOut[/color blue] or numerous other combinations has failed to work. I can't seem to find the Printout command listed in the built-in 'Word Commands' (under Tools>Macros>Macros in 'Word Commands'
Any help appreciated,
Thanks
(The more ASP.NET I do, the more Javascript I find myself using)