Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
print event
I want my beforeprint event code to execute only when the user prints the
document, not when the user switches to print preview. I tried creating a button that would call a procedure to disable events, switch to print preview, then re-enable events, but the user can then print from print preview without executing the code for the beforeprint event. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
print event
The BeforePrint is rather anemic; it doesn't tell you what is
being printed (a range, a sheet, or a workbook) and doesn't distinguish between printing and print preview. I don't think there is any solid way to do what you want. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "xlcharlie" wrote in message ... I want my beforeprint event code to execute only when the user prints the document, not when the user switches to print preview. I tried creating a button that would call a procedure to disable events, switch to preview, then re-enable events, but the user can then print from print preview without executing the code for the beforeprint event. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Print a range when an event happens | Excel Discussion (Misc queries) | |||
user form-on open event? keydown event? | Excel Programming | |||
Aborting from a "Before Print" Event | Excel Programming | |||
before print event not working | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |