How to Fix Grayed Out Page Number Option in Word
Question details
The user is unable to insert page numbers into their document because the Page Number option is grayed out or unavailable.

- 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.
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.
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.
Double-click on the very top or bottom margin of any page in your document. You will see the main body text fade slightly.
Click exactly where you want the page number to appear within the activated header or footer boundary.
Press 'Alt + Shift + P' simultaneously on your keyboard. This instantly inserts a dynamic page number at your cursor's exact location.

Insert Page Number at Current Position
If you are trying to add a page number to a header that already has text, inserting a standard page number block might delete your text. Use the 'Current Position' feature instead.
Create the Header Manually Instead of Using Building Blocks
Sometimes pre-formatted header/footer building blocks lock out additional fields. Manually creating the header resolves this conflict.
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. Open your document: Launch WPS Writer and open the document you wish to format.
- 2. Access the Page Number tool: Navigate to the 'Insert' tab on the ribbon menu and click on 'Page Number'.
- 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. Apply to document: Click 'OK' to automatically apply dynamic page numbers throughout your entire document.

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.




