Is is possible to password-protect a MS Word document so it can't be printed?
Printable View
Is is possible to password-protect a MS Word document so it can't be printed?
If you can't open it, you can't print it (at least that is how it would appear to me.)
Check this out.
Of course, but I thought you could do this pretty much like in pdf docs.Quote:
Originally Posted by Hack
Word documents and PDF documents are two different animals made by two different companies and each has their own individual requirements.
If you are dealing with Word, then you need to follow Word's rules.
You can Protect content from being edited by using Forms.
Right click on the toolbar section of word, to bring up your toolbar list, and select Forms. With the toolbar you can create forms on your document, and then protect them by going to Tools / Protect / Forms.
This will protect any part of your document which isn't a form (i.e. in grey when you do a form)
To stop someone printing a doc you have to use VBA. You can intercept the print command by using a macro with the name FilePrint.
In your code module for the doc paste the following code, it should purpress the print option.
Sub FilePrint()
MsgBox "Print disabled"
End Sub
Very cool. Does your code prevent printing from both the print button icon on the toolbar as well as FilePrint?
I don't really understand what you're trying to say: why would I create forms and protect them when I actually want to protect the document?Quote:
Originally Posted by NeedSomeAnswers
This I don't understand either. You explain how to create and protect forms and then you say this will protect anything but the forms???Quote:
Originally Posted by NeedSomeAnswers
Assuming Hack's issue about the "print" button could be solved, how do you protect the document so that users can't edit the VBA code?Quote:
Originally Posted by NeedSomeAnswers
I insist on Hacks's point. It's very nice to trap the print menu routine but can the print button be intercepted as well? Otherwise it's useless.Quote:
Originally Posted by Hack
All right, I've got it:Quote:
Originally Posted by krtxmrtz
VB Code:
Sub FilePrintDefault() MsgBox "I said Print is disabled!!!" End Sub