Formatting Issues

How to Fix Grayed Out Page Number Option in Word

Chanuka GeekiyanageChanuka Geekiyanage Nov 2, 2026 869 views

Question details

The user is unable to insert page numbers into their document because the Page Number option is grayed out or unavailable.

How to Fix Grayed Out Page Number Option in Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Attempting to add or modify page numbers using the Insert menu or header/footer building blocks during document formatting.
Observed behavior
The Page Number command becomes inactive (grayed out) when the cursor is in the document body, or when a pre-formatted building block without a page number is currently selected.
Before you start

Ensure your document is in 'Print Layout' view rather than 'Read Mode' or 'Web Layout', as alternative views can disable header and footer editing commands.

Solution 1Recommended

Activate Header or Footer Area and Use the Keyboard Shortcut

The quickest way to bypass the disabled ribbon menu is to directly activate the header or footer editing area and insert the page number field using a keyboard shortcut.

By design, Word disables the header and footer formatting tools when your cursor is actively placed in the main document body. Activating the header area restores these functions.

1
Open the Header & Footer editing mode

Double-click on the very top or bottom margin of any page in your document. You will see the main body text fade slightly.

2
Place the cursor

Click exactly where you want the page number to appear within the activated header or footer boundary.

3
Insert the PAGE field

Press 'Alt + Shift + P' simultaneously on your keyboard. This instantly inserts a dynamic page number at your cursor's exact location.

Activate Header or Footer Area and Use the Keyboard Shortcut
Quick Tip: The 'Alt + Shift + P' shortcut works universally across Microsoft Word versions to insert page numbers without needing to navigate the top ribbon menus.
Efficient Document Formatting

Easily Insert and Manage Page Numbers with WPS Office

WPS Office provides a highly intuitive Header and Footer interface, making it incredibly simple to insert, format, and customize page numbers without experiencing grayed-out menu glitches.

  1. 1. Open your document: Launch WPS Writer and open the document you wish to format.
  2. 2. Access the Page Number tool: Navigate to the 'Insert' tab on the ribbon menu and click on 'Page Number'.
  3. 3. Choose placement and style: Select your preferred position (Header, Footer, or Current Position) and pick a format from the drop-down visual list.
  4. 4. Apply to document: Click 'OK' to automatically apply dynamic page numbers throughout your entire document.
Fully compatible with Microsoft Word (.docx) formats.Intuitive Insert Page Number dialog with instant visual previews.User-friendly interface prevents accidental overwriting of header text.Free and lightweight office suite for everyday document creation.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the entire Header and Footer menu missing or disabled?

If the Header and Footer tools are completely disabled, your document might be in 'Web Layout' view, 'Read Mode', or it is a protected document restricted from editing. Switch to 'Print Layout' view by clicking 'View' > 'Print Layout' to restore these formatting options.

Why does adding a page number delete my existing header text?

This happens when you select a pre-formatted 'Top of Page' or 'Bottom of Page' building block from the Insert menu, which is designed to override existing content. To avoid this, place your cursor where you want the number and choose 'Page Number' > 'Current Position', or use the 'Alt + Shift + P' shortcut.

Can I have different page numbers on different pages?

Yes. You can achieve this by inserting Section Breaks (Layout > Breaks > Next Page) between chapters or sections. Once inserted, double-click the header of the new section, deselect 'Link to Previous', and then format the page numbers independently for that section.