Alt P Shortcut: What It Does in Excel and Windows

How-to basics · Updated November 23, 2026

The Alt+P shortcut has two common meanings: in Microsoft Excel it opens the Page Layout tab on the ribbon, and in many Windows programs it opens the File menu (or a specific menu item starting with P). This article explains both uses in detail, with exact steps for Excel, Windows, and common variations.

What Alt+P Does in Microsoft Excel

In Excel for Microsoft 365 (and Excel 2021, 2019, and 2016), pressing Alt+P activates the Page Layout tab on the ribbon. This is a keyboard-only way to switch tabs without using the mouse. Once the tab is active, you can press additional keys to access specific commands. For example:

  • Alt+P, S – opens the Page Setup dialog box (the same as clicking the dialog launcher in the Page Setup group).
  • Alt+P, O – opens the Orientation drop-down (Portrait/Landscape).
  • Alt+P, M – opens the Margins drop-down.
  • Alt+P, Z – opens the Scale to Fit options (width/height).

Note that the exact keys after Alt+P depend on the version of Excel. In older versions (2007–2013), the sequence might differ slightly. In Excel for Mac, the shortcut is Control+Option+P to switch to the Page Layout tab, but the ribbon behavior is different because Mac uses a different keyboard system.

Alt+P in Windows File Explorer and Other Apps

In many Windows applications, Alt activates the menu bar, and pressing a letter selects the menu or command that starts with that letter. For example:

  • In File Explorer (Windows 10/11), pressing Alt+P toggles the Preview Pane on and off. This is a built-in shortcut that works without any configuration.
  • In older programs with a traditional menu bar (like Notepad or WordPad), Alt+P might open the File menu if the menu bar has a File entry (because the underlined letter is F, not P – so actually Alt+F opens File). However, if a menu item starts with P (like “Page Setup” in some apps), Alt+P might trigger it.
  • In Microsoft Word, Alt+P does nothing by default because the ribbon uses different access keys. Instead, Word uses Alt+F for File and Alt+P is not assigned. You can check the KeyTips by pressing Alt alone.

So the meaning of Alt+P is context-dependent. In Excel it’s Page Layout; in File Explorer it’s Preview Pane; elsewhere it may be a menu accelerator.

How to Use Alt+P in Excel (Step by Step)

  1. Open any Excel workbook.
  2. Press and release the Alt key. You’ll see small letters (KeyTips) appear on the ribbon tabs.
  3. Press P (the letter for Page Layout). The Page Layout tab becomes active.
  4. Now you can press another letter to choose a command, or just use the arrow keys to navigate.

For example, to set margins: Alt+P, M then choose a margin preset. The comma means “press and release the keys in sequence” – not simultaneously.

Common Problems and Misconceptions

Misconception: Alt+P is a universal shortcut for “Print”. Actually, the universal shortcut for Print is Ctrl+P (or Command+P on Mac). Alt+P is not a standard print shortcut in any major application. If you press Alt+P expecting to print, you’ll be surprised.

Problem: Alt+P doesn’t work in Excel on Mac. Excel for Mac uses the Control+Option prefix for ribbon shortcuts. So you press Control+Option+P to go to Page Layout. Alternatively, you can use the Command key for many actions, but ribbon navigation is different.

Problem: Alt+P opens the wrong menu in some custom programs. If an application has a custom ribbon or menu, Alt+P might trigger a different command. Check the program’s documentation or press Alt to see the KeyTips.

Alternatives to Alt+P in Excel

If you prefer not to use Alt+P, here are other ways to access Page Layout:

  • Click the Page Layout tab with your mouse.
  • Use the keyboard sequence Alt, W, P – but note that Alt+W is the View tab, so that’s not correct. Actually, the correct sequence is just Alt+P (Alt then P).
  • Use the Ctrl+F1 to collapse/expand the ribbon, then use Tab and arrow keys to navigate.
  • In Excel for the web, there is no Alt+P shortcut. You must click the tab or use the browser’s keyboard navigation.

If you want to print in Excel, use Ctrl+P (Windows) or Command+P (Mac) to open the Print dialog directly.

Frequently Asked Questions

Q: Does Alt+P work in Google Sheets?
No. Google Sheets does not use Alt+P for anything. In Google Sheets, you can use Alt+Shift+P to open the Print dialog (on Windows) or Option+Shift+P on Mac. The Page Layout concept is different in Sheets; you use File > Print to adjust layout.

Q: How do I make Alt+P show the Page Setup dialog in Excel?
Press Alt+P to go to Page Layout, then press S (for Page Setup). This opens the Page Setup dialog with tabs for Page, Margins, Header/Footer, and Sheet.

Q: Why does Alt+P toggle the Preview Pane in File Explorer but not in Excel?
Because each program assigns its own shortcuts. File Explorer uses Alt+P as a toggle for the Preview Pane (a built-in feature). Excel uses Alt+P as a ribbon access key. They are separate applications with separate shortcut maps.

Q: Is there a way to change Alt+P to do something else in Excel?
You cannot reassign built-in ribbon access keys like Alt+P. However, you can create a macro and assign it to a keyboard shortcut (like Ctrl+Shift+P) that does what you want. To do this, go to View > Macros > Record Macro, then assign a shortcut in the dialog. Note that macros cannot be undone with Ctrl+Z, so save a copy of your workbook before running one.

Q: What is the difference between Alt+P and Ctrl+P?
Alt+P is a ribbon access key (opens Page Layout in Excel). Ctrl+P is the universal Print shortcut that opens the Print dialog in almost every program, including Excel. They are completely different.

Keyboard Shortcut Reference Table

Here is a quick reference for the shortcuts mentioned:

  • Alt+P – Excel: Page Layout tab; File Explorer: toggle Preview Pane
  • Ctrl+P – Print (Windows)
  • Command+P – Print (Mac)
  • Alt+Shift+P – Print in Google Sheets (Windows)
  • Control+Option+P – Page Layout in Excel for Mac

Remember that in Excel, you press keys in sequence, not all at once. So “Alt+P, M” means press Alt, release, press P, release, then press M.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.