ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Print Preview Delemma, Once More Please (https://www.excelbanter.com/excel-programming/423413-print-preview-delemma-once-more-please.html)

JRK

Print Preview Delemma, Once More Please
 
Hi

Despite the response to my last question, I still have a problem resolving
an issue I have with Print Preview. I want the user to be able to preview a
WS, but I don't want the user to Print the WS. Here's what I did:

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

But that prevents Print Preview from showing, which defeats my purpose. I've
tried several IF statements without success.

Can anyone please help this excel-dummy create the correct procedure to show
Print Preview, but not allow it to Print? Thank you.




All times are GMT +1. The time now is 11:20 AM.

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