Using Page Layout

To change the page orientation in Excel using thePage Layoutoption:

2.

Using Print Preview

Another way to change the page orientation of an Excel spreadsheet is when printing.

This method is convenient because it allows you to preview how your worksheet will look before you print it.

A person typing on a MacBook laptop with Excel spreadsheet open

Here’s how to change page orientation using the print preview window.

Changing the orientation of each sheet would be time-consuming, especially if the workbook contains many worksheets.

All worksheets in the workbook should now have the landscape orientation.

Page Orientation Drop-down Menu

A

To set the page orientation to portrait instead, enter the following code in theImmediatewindow and pressEnter.

Page Layout Group Under the Page Layout Tab in Excel

Setting the Orientation to Landscape in the Page Setup Dialog Box

Setting Orientation to Landscape Under Print Settings

Selecting Visual Basic to Open the VB Editor

Selecting the Immediate Window Option Under the View Tab

VBA Code to Change Page Orientation in the Immediate Window

A