Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Closing Print Preview in Excel Macro

Hi,

I have recorded an Excel Macro that goes into print preview and
formats the page in case the user wants to print. However, the macro
will not record the "Closing" of the Print Preview.

Is there some VBA code I can insert into the macro which will close
print preview and take the user into Edit mode instead of Print
Preview mode?

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Closing Print Preview in Excel Macro

If you need the user to see the output in Print Preview, closing it in code
makes no sense, as you cannot tell when the user is "ready".
If you do not need the user to see the output, don't go into Print Preview.

NickHK

wrote in message
oups.com...
Hi,

I have recorded an Excel Macro that goes into print preview and
formats the page in case the user wants to print. However, the macro
will not record the "Closing" of the Print Preview.

Is there some VBA code I can insert into the macro which will close
print preview and take the user into Edit mode instead of Print
Preview mode?

Thanks,



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
Macro & Print Preview? Ken Excel Discussion (Misc queries) 2 April 2nd 08 12:52 PM
Why does macro speed slow after Excel Print or Print Preview? Larry A[_3_] Excel Programming 6 May 16th 05 11:22 AM
Macro buttons tiled after print / print preview Eddie Chan Excel Programming 2 January 1st 05 02:50 PM
VBA Help - Running a macro when closing print preview carljonesuk[_2_] Excel Programming 3 February 9th 04 01:39 PM
Resuming code after closing a print preview DarrenW Excel Programming 1 July 21st 03 02:54 PM


All times are GMT +1. The time now is 02:30 PM.

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

About Us

"It's about Microsoft Excel"