ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   create a button that previews sheets (https://www.excelbanter.com/excel-programming/345708-create-button-previews-sheets.html)

Helen

create a button that previews sheets
 
Hi,

Yesterday I learnt how to create a button to Print my sheets. Now I'm
wondering if there is a way to create button that will open the sheets in
Preview?

Thanks,

Helen




Norman Jones

create a button that previews sheets
 
Hi Helen,

Try:

'==============
Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).PrintPreview
End Sub
'<<==============


---
Regards,
Norman



"Helen" wrote in message
...
Hi,

Yesterday I learnt how to create a button to Print my sheets. Now I'm
wondering if there is a way to create button that will open the sheets in
Preview?

Thanks,

Helen







All times are GMT +1. The time now is 05:47 PM.

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