Printing in both Landscape and Potrait on the same spreadsheet

jasho

New Member
Joined
Jun 20, 2012
Messages
9
I have an 8 page spreadsheet and I'm trying to print the first 2 pages in Landscape and the other 6 in Potrait. I would like to eventually send this spreadsheet in this format to people with limited excel knowledge and expect them to print without any issues. Please assist. Thanks.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
The only way you can really do this is with a Workbook BeforePrint event in VBA to capture when the user prints the workbook and then have a custom print routine to print the required ranges whilst changing the orientation in page setup.

If the user doesn't enable macros though it will obviously not work.

Dom
 
Upvote 0
Thanks Dom. Got a macro but thought there was a way to do it without it. Thanks again.
 
Upvote 0
Couldn't you just split the 2 and 6 pages onto different worksheets and configure the worksheets appropriately?

Most people can cope with printing multiple worksheets.
 
Upvote 0
grd,

Thanks for the help. I got a VB code that works perfect.

Sub CommandButton1_Click()
ActiveWorkbook.CustomViews("custom print 1").Show
ActiveWorkbook.PrintOut
ActiveWorkbook.CustomViews("custom print 2").Show
ActiveWorkbook.PrintOut
MsgBox "Priting Complete"
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,514
Messages
6,055,842
Members
444,828
Latest member
StaffordStag

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