montrof
asked on
Print Range Macro
Hi,
I would like to use a macro to cycle through multiple tabs in a workbook and setup the print range. I want each tab to be a page and all contents to fit on one page in landscape on a standard 8.5 by 11 page.
Thanks
Montrof
I would like to use a macro to cycle through multiple tabs in a workbook and setup the print range. I want each tab to be a page and all contents to fit on one page in landscape on a standard 8.5 by 11 page.
Thanks
Montrof
Try this on your selected sheets
Thomas
Sub Macro1()
'
' Macro1 Macro
'
Dim sht As Worksheet
Application.PrintCommunication = False
For Each sht In ActiveWindow.SelectedSheets
With sht.PageSetup
.Orientation = xlLandscape
.PaperSize = xlPaperLetter
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
Next sht
Application.PrintCommunication = True
End Sub
Thomas
ASKER
Thank you for the Macros but neither work, Each tab is still showing mutiple pages. I do not know if it maters but there are graphs on the tabs.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect thank you so much for the help
Open in new window