bpeirson
Structural
- Apr 7, 2003
- 147
If your company uses large spreadsheets which were never intended for printout then you may have experienced someone accidentally printing that spreadsheet.
To stop this from happening insert this code into the "ThisWorkbook" object.
The annoyance of this stopping a legitimate print job is offset by watching 250 pages churn out of a network printer while some poor slob tries to figure out how to cancel the job.
To stop this from happening insert this code into the "ThisWorkbook" object.
Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Cancel = True
MsgBox ("Do not print from ""Your spreadsheet name here"". Copy and paste the information you need to print into a new spreadsheet.")
End Sub
The annoyance of this stopping a legitimate print job is offset by watching 250 pages churn out of a network printer while some poor slob tries to figure out how to cancel the job.