ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Print All Tabs Macro (https://www.excelbanter.com/excel-programming/391234-excel-print-all-tabs-macro.html)

prahz

Excel Print All Tabs Macro
 
Can anyone help me with this newbie question:

I need a macro that prints all tabs in a given workbook. Can anyone
provide me the code please?

Thanks,

Paul


JW[_2_]

Excel Print All Tabs Macro
 
Su
Sub code()
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
sht.PrintOut
Next sht
End Sub

HTH

prahz wrote:
Can anyone help me with this newbie question:

I need a macro that prints all tabs in a given workbook. Can anyone
provide me the code please?

Thanks,

Paul



Ron de Bruin

Excel Print All Tabs Macro
 
Or use a one liner
http://www.rondebruin.nl/print.htm#Print


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"JW" wrote in message oups.com...
Su
Sub code()
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
sht.PrintOut
Next sht
End Sub

HTH

prahz wrote:
Can anyone help me with this newbie question:

I need a macro that prints all tabs in a given workbook. Can anyone
provide me the code please?

Thanks,

Paul




All times are GMT +1. The time now is 03:32 PM.

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