ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   .PrintPreview (https://www.excelbanter.com/excel-programming/382819-printpreview.html)

André Boileau

.PrintPreview
 
I need to go in and out of Excel's print preview by means of VBA. Help files
show me how to get in with "Sheets("").PrintPreview" but nothing on how to
get out?
--
Popsie

Gary Brown

.PrintPreview
 
The user must close the preview window
--
HTH,
Gary Brown

If this post was helpful to you, please select ''YES'' at the bottom of the
post.



"André Boileau" wrote:

I need to go in and out of Excel's print preview by means of VBA. Help files
show me how to get in with "Sheets("").PrintPreview" but nothing on how to
get out?
--
Popsie


NickHK

.PrintPreview
 
It makes no sense to close the Printpreview from code.
How do you know the user has finished doing whatever it is that required the
preview in the first place ?

NickHK

"André Boileau" wrote in message
...
I need to go in and out of Excel's print preview by means of VBA. Help

files
show me how to get in with "Sheets("").PrintPreview" but nothing on how to
get out?
--
Popsie





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com