Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So anytime anyone prints it will just do a printpreview.
-- Regards, Tom Ogilvy "Shailesh Shah" wrote in message ... Hi Car Jones, Try this, Put below code into thisworkbook's codemodule. Private Sub Workbook_BeforePrint(Cancel As Boolean) Application.EnableEvents = False Cancel = True ActiveWindow.SelectedSheets.PrintPreview Application.EnableEvents = True 'write\call you macro here MsgBox "macro runs after print preview" End Sub Regards, Shah Shailesh http://members.lycos.co.uk/shahweb/ *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro & Print Preview? | Excel Discussion (Misc queries) | |||
Auto running a macro on closing | Excel Discussion (Misc queries) | |||
Print Preview Macro | Excel Discussion (Misc queries) | |||
Closing the Userform when macro is running | Excel Programming | |||
Resuming code after closing a print preview | Excel Programming |