Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All...........
If you please.........is it possible to construct a macro that will fire Macro "A" as a "Before-print" event and Macro "B" as an "After-print" event for the same print event. TIA Vaya con Dios, Chuck, CABGx3 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is a workbook_beforeprint that you can tie into.
But there is no workbook_afterprint event. maybe you could work off a timer??? Behind the ThisWorkbook module: Option Explicit Private Sub Workbook_BeforePrint(Cancel As Boolean) 'your beforeprint code here Application.OnTime Now + TimeSerial(0, 0, 10), "RunAfterPrint" End Sub Then in a general module: Option Explicit Sub runAfterPrint() 'your code here End Sub (I waited 10 seconds. Adjust as necessary.) CLR wrote: Hi All........... If you please.........is it possible to construct a macro that will fire Macro "A" as a "Before-print" event and Macro "B" as an "After-print" event for the same print event. TIA Vaya con Dios, Chuck, CABGx3 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave, for a very clever solution where no conventional one
exists........... Vaya con Dios, Chuck, CABGx3 "Dave Peterson" wrote in message ... There is a workbook_beforeprint that you can tie into. But there is no workbook_afterprint event. maybe you could work off a timer??? Behind the ThisWorkbook module: Option Explicit Private Sub Workbook_BeforePrint(Cancel As Boolean) 'your beforeprint code here Application.OnTime Now + TimeSerial(0, 0, 10), "RunAfterPrint" End Sub Then in a general module: Option Explicit Sub runAfterPrint() 'your code here End Sub (I waited 10 seconds. Adjust as necessary.) CLR wrote: Hi All........... If you please.........is it possible to construct a macro that will fire Macro "A" as a "Before-print" event and Macro "B" as an "After-print" event for the same print event. TIA Vaya con Dios, Chuck, CABGx3 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
print button macro & specific tabs to print | Excel Worksheet Functions | |||
need a print macro to print only a certain number of pages | Excel Discussion (Misc queries) | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Macro to open print window and set to print entire workbook | Excel Discussion (Misc queries) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions |