Macro which prints my entire workbook (ie all 4 pages together)

Totton

New Member
Joined
Jul 15, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi All :)

I'm in need of a macro which prints my entire workbook (that is all 4 pages together).

I tried using the one below but it seems to print the pages separately .... any help on this would be greatly appreciated

Sub PrintAll()
Dim sh As Worksheet
Dim wb As Workbook
Set wb = ThisWorkbook
For Each sh In wb.Worksheets
sh.PrintOut
Next sh
End Sub
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Please clarify - do you have 4 tabs in your workbook and you want them all to print on one sheet of paper?
 
Upvote 0
If you want them all printed on separate pages, but as one printout, use:
VBA Code:
ThisWorkbook.Worksheets.PrintOut
 
Upvote 0
Sorry I have 4 tabs in the one Workbook was hoping they would all print on seperate pages but in one stream of printing ?
 
Upvote 0
OMG that worked!!!!! thank you so much

I'm very new to this and really appreciate you both coming back so quickly
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top