Page orientation is an important aspect of formatting in Excel that determines how your worksheet looks when printed or viewed. By default, Excel sets the page orientation to portrait mode, but you may need to switch to landscape orientation for a better view of your worksheet.

We'll show you how to change the page orientation of a single worksheet or an entire workbook in Excel.

How to Change the Page Orientation of a Spreadsheet in Excel

There are various ways to change the page orientation of an Excel spreadsheet.

1. Using Page Layout

To change the page orientation in Excel using the Page Layout option:

  1. Open the worksheet with the orientation you want to change.
  2. Click the Page Layout tab at the top of the window.
  3. Select the Orientation option.
  4. Choose Portrait or Landscape orientation.
    Page Orientation Drop-down Menu

2. Using Page Setup

If you need to change one or two settings in the Page Setup window, you can also change the page orientation of your spreadsheet using the Page Setup tool. Here's how.

  1. Open your Excel worksheet.
  2. Select the Page Layout tab.
  3. Go to Page Setup and click the arrow at the bottom right of the group.
    Page Layout Group Under the Page Layout Tab in Excel
  4. Click the Page tab at the top of the dialog box that appears.
  5. Under the Orientation section, select Portrait or Landscape.
    Setting the Orientation to Landscape in the Page Setup Dialog Box
  6. Click OK to save your changes.

In the dialog box, you can also adjust the page scale to fit your Excel spreadsheet to your screen.

3. 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. Here's how to change page orientation using the print preview window.

  1. Open your Excel spreadsheet.
  2. Click on the File tab and select Print.
  3. Under Settings, click on the Page Orientation drop-down menu.
    Setting Orientation to Landscape Under Print Settings
  4. Choose the page orientation you want to use and hit Print when you're ready to print.

4. Using a Keyboard Shortcut

If you prefer using keyboard shortcuts, use the steps below:

  1. Press Alt + P + O one after the other on your keyboard.
  2. Select Portrait or Landscape from the drop-down menu that appears at the top of the screen.
    Page Orientation Drop-down Menu

How to Change the Page Orientation of Multiple Spreadsheets in Excel Using VBA

When you change the page orientation of a spreadsheet, it only applies to that particular sheet and not to any other sheets within your workbook.

Changing the orientation of each sheet would be time-consuming, especially if the workbook contains many worksheets. Here's a simple VBA method you can use to change the page orientation of multiple worksheets in your Excel workbook.

  1. Open the workbook you want to edit.
  2. Click on the Developer tab and select Visual Basic to open the Visual Basic Editor. Here's how to enable the Developer tab in Excel if you don't have it.
    Selecting Visual Basic to Open the VB Editor
  3. Click the View tab and select Immediate Window. You can also use the keyboard shortcut Ctrl + G.
    Selecting the Immediate Window Option Under the View Tab
  4. Enter the following code in the Immediate window.
            For each ws in Worksheets: ws.PageSetup.Orientation = xlLandscape: Next ws
        
  5. Hit Enter and close the VB editor.
    VBA Code to Change Page Orientation in the Immediate Window
    A

All worksheets in the workbook should now have the landscape orientation. To set the page orientation to portrait instead, enter the following code in the Immediate window and press Enter.

        For each ws in Worksheets: ws.PageSetup.Orientation = xlPortrait: Next ws
    

Set Appropriate Page Orientation in Excel

Excel is great for managing and analyzing data, but sometimes the default page orientation may not be suitable for the data you're working with.

Whether it's for printing or presentation purposes, changing the page orientation in Excel can help improve the layout and readability of your data. With a few clicks, you can easily switch between portrait and landscape orientations and organize your spreadsheets the way you want them.