ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create a Button that will print sheets (https://www.excelbanter.com/excel-programming/345592-create-button-will-print-sheets.html)

Helen

Create a Button that will print sheets
 
Hello,

I have a workbook that contains many worksheets. I would like to add a
button to my first sheet that prints a selected few of the sheets. I've
already added my button but is unsure what the code should be.

Thanks!!

Helen



Jim Thomlinson[_4_]

Create a Button that will print sheets
 
One way...

Sheets(Array("Sheet1", "Sheet2")).printout Copies:=1
--
HTH...

Jim Thomlinson


"Helen" wrote:

Hello,

I have a workbook that contains many worksheets. I would like to add a
button to my first sheet that prints a selected few of the sheets. I've
already added my button but is unsure what the code should be.

Thanks!!

Helen




Helen

Create a Button that will print sheets
 
Works great.

Thanks!

Helen


"Jim Thomlinson" wrote in message
...
One way...

Sheets(Array("Sheet1", "Sheet2")).printout Copies:=1
--
HTH...

Jim Thomlinson


"Helen" wrote:

Hello,

I have a workbook that contains many worksheets. I would like to add a
button to my first sheet that prints a selected few of the sheets. I've
already added my button but is unsure what the code should be.

Thanks!!

Helen







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

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