Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi to all
Is there any way when i print a worksheet after print command given from file menu it should run a macro or it should ask the name of macros which have in module. thanks ****al shah |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
there is a Before Print event in the worksheet module but
no after print so no you can't do that. I would suggest that you assign your macro to a custom icon that you can click just after print. -----Original Message----- hi to all Is there any way when i print a worksheet after print command given from file menu it should run a macro or it should ask the name of macros which have in module. thanks ****al shah . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
?B?c2hpdGFsIHNoYWg=?= wrote
Is there any way when i print a worksheet after print command given from file menu it should run a macro or it should ask the name of macros which have in module. Maybe this will work: Worksheet Module Private Sub Workbook_BeforePrint(Cancel As Boolean) On Error GoTo Quit Application.OnTime Now(), ThisWorkbook.Name & "!WorkbookAfterPrint" Quit: End Sub General Module Sub WorkbookAfterPrint() 'Your code or call macro here End Sub -- David |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
David wrote
Worksheet Module Sorry, this should be Workbook Module -- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Command Button - Macro to print to pdf, then send pdf to email. | Excel Discussion (Misc queries) | |||
How to format the extension less file to print with Dos's Print Command | Excel Discussion (Misc queries) | |||
Print Command | Excel Discussion (Misc queries) | |||
Print command box | Excel Discussion (Misc queries) | |||
Sending Print command in a macro | Excel Programming |