Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default run macro after print command.

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   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default run macro after print command.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default run macro after print command.

?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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default run macro after print command.

David wrote

Worksheet Module


Sorry, this should be Workbook Module

--
David
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button - Macro to print to pdf, then send pdf to email. Tdahlman Excel Discussion (Misc queries) 2 May 1st 23 11:44 AM
How to format the extension less file to print with Dos's Print Command Badshah Excel Discussion (Misc queries) 0 November 28th 06 12:44 PM
Print Command Durga Excel Discussion (Misc queries) 0 October 27th 05 12:02 AM
Print command box Meghan Excel Discussion (Misc queries) 1 June 16th 05 12:34 AM
Sending Print command in a macro janet Excel Programming 2 August 29th 03 03:58 PM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"