How to Change Page Orientation in Excel

There are two different orientations (Portrait or Landscape) in Excel that you can use and make changes according to your need. In this tutorial, we will learn to change page orientation in Excel.

change-page-orientation

Steps to Change Page Orientation

  1. First, of all go to the Page Layout Tab.
    2-page-layout-tab
  2. Next, in the Page Layout, you have the ‘Page Setup” group, and you have an Orientation Option.
    3-orientation-icon
  3. Now, click on the Orientation drop-down.
    4-orientation-drop-down
  4. In the end, click select the orientation (Portrait or Landscape) that you want to apply.

This is the easiest way to change the orientation of a page in Excel.

Change Page Orientation from Page Setup Dialog Box

  1. First, use the keyboard shortcut (Alt ⇢ P ⇢ S ⇢ P) to open the page setup dialog box, or you can click on the down arrow on the bottom right on the “Page Setup” group.
    5-page-setup-group
  2. From here, in the “Page Setup” dialog box, you have the Orientation to select.
    6-select-orientation-portrait
  3. Now, change the orientation as you want.
    7-select-orientation-landscape
  4. In the end, click OK to apply.

Change Page Orientation from Print Preview

You can change the orientation from the print preview.

  1. Use the keyboard shortcut (Control + P) to open the print preview.
  2. Click on the Orientation drop-down.
  3. Select the orientation (Portrait and Landscape) from the list.
  4. This will change the orientation instantly.
orientation-from-print-preview

Use a VBA Code

You can also use a VBA code to change the orientation.

vba-code-change-orientation
Sub Macro1()
    'Apply Portrait Orientation
    ActiveSheet.PageSetup.Orientation = xlPortrait
    'Apply Landscape Orientation
    ActiveSheet.PageSetup.Orientation = xlLandscape
End Sub