Quantcast
Channel: Word VBA Beginners
Viewing all articles
Browse latest Browse all 106

disable print option for web page

$
0
0
I have a word file which saved as web page. I placed following codes
to disable printing for this file. If I open the file with MS Word,
the codes work perfectly well. However I do not want the user print
the file even as single web file format. Is that possible?Thank you in
advance
Baha
My code as below:

Sub FilePrint()
MsgBox "Printing not allowed."
End Sub
Sub FilePrintDefault()
FilePrint
End Sub

Viewing all articles
Browse latest Browse all 106

Trending Articles