ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Prevention of Printing (https://www.excelbanter.com/excel-discussion-misc-queries/159536-prevention-printing.html)

DeeJay

Prevention of Printing
 
I would like to send an excel document to someone , it consists of
approximately 6 worksheets. Is there a way that I can prevent them from
printing it out once I have emailed it to them.
Any help would be appreciated.



Mike H

Prevention of Printing
 
Deejay,

Yes and no :)

You could add this macro to the workbook which prevents printing:-

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Cancel = True
End Sub

The no bit comes in because no matter how clever we may think we are in
protecting our macros etc a reasonably determined user will crack that
protection very quickly with the help of a Google search.

In short the only way to stop them printing is don't send them the worksheet.

Mike


"Deejay" wrote:

I would like to send an excel document to someone , it consists of
approximately 6 worksheets. Is there a way that I can prevent them from
printing it out once I have emailed it to them.
Any help would be appreciated.




All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com