Fix the Grayed-Out Page Number Command in Microsoft Word
Question details
The user needs to add page numbers when the Page Number command on Word's Insert tab is disabled.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Adding page numbers to a document through Insert > Page Number.
- Observed behavior
- The Page Number command is grayed out, preventing insertion through the ribbon.
Check whether the document allows editing and whether you have permission to change its protection settings. The keyboard shortcuts and Quick Parts instructions below apply to desktop Word for Windows; other versions may differ.
Check document protection and editing restrictions
Use this first to determine whether document restrictions are preventing page-number insertion.
In Word, open Review > Restrict Editing and check whether restrictions are enforced. Protection can prevent changes to the document or its headers and footers.
If you are authorized to remove protection, click Stop Protection in the Restrict Editing pane and enter the password if prompted. If you do not have the password or permission, ask the document owner to allow the change.
Return to Insert > Page Number and choose the location and style you need. If the command remains unavailable but the document is editable, try one of the PAGE field methods below.

Insert a PAGE field with Alt+Shift+P
Use this shortcut in an editable document when the ribbon command is unavailable.
Insert a PAGE field through Quick Parts or field braces
Use the Field dialog or create the field manually when you prefer another insertion method.
Add Document Page Numbers with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface and support for Word documents, making migration straightforward. Open an editable document in WPS Writer and use Insert > Page Number to add numbering. WPS does not fix Word's disabled command or bypass document protection.

Frequently Asked Questions
Does a grayed-out Page Number command mean my document is protected?
Protection is one possible cause, but the disabled command alone does not prove it. Open Review > Restrict Editing to check whether restrictions are enforced.
Can I insert a page number without using the Page Number button?
Yes, if the insertion location is editable. In desktop Word for Windows, press Alt+Shift+P, or choose Insert > Quick Parts > Field and select PAGE.
Why does Word show { PAGE } instead of a page number?
Word is displaying field codes rather than results. In desktop Word for Windows, press Alt+F9 to toggle the display. If you created the field manually, press F9 to update it.
How do I make the page number appear on every page?
Double-click the top or bottom margin to open the header or footer, then insert the PAGE field there. Check the Different First Page and section header/footer settings if some pages do not show the number.
Can I type { PAGE } manually to create a working page number?
No. Ordinary typed braces do not create a Word field. Press Ctrl+F9 to insert field braces, type PAGE inside them, and press F9 to update the field.




