How to solve the problem that the Word page number setting is gray?

The page number setting button in Word is grayed out and unavailable. Most likely the document is in Protected View, Reading View, Restricted Editing or Read-Only status. This article explains how to diagnose various causes and the corresponding repair steps.

Key points of this article

  • When the page number command is grayed out, first check the title bar to see if there is a "Protected View" prompt, and confirm in the prompt bar that editing is allowed to restore most functions.
  • The header and footer are not displayed in reading view and web layout. Try inserting page numbers after switching to page view (print layout).
  • When the document is restricted for editing or marked as final, it will become read-only and requires a password or unrestricted original file to modify.
  • Page numbers may not be inserted when the cursor is located in a table, text box, or area locked by content controls. Move the cursor to the text paragraph and try again.
  • The old version of .doc format has limited functions. The page number command can usually be used normally after saving as .docx.

I want to add page numbers to a document in Word, but when I find the page number related settings, I find that the button is gray and cannot be clicked. Many people subconsciously think that the software is broken or needs to be reinstalled. In fact, in most cases, the problem lies in the status or view of the document and has nothing to do with the software itself.

This article is written for people who encounter the gray page number setting in Word. After reading, you can take a few minutes to determine which cause it is, and then troubleshoot and fix it in order. Common situations include: the file comes from email or the network and is in Protected view, is currently in Reading view, the document has restricted editing turned on, is marked as final, or is a read-only file. The treatment methods for each reason are different and are explained separately below.

Word page number setting is gray, how to solve it? One sentence conclusion

First confirm whether the document is editable, and then switch to page view and try again. Most cases can be solved directly; if it is still gray, check the editing restrictions and file properties. The following tables and steps are arranged from easy to difficult. It is recommended to check them from top to bottom.

your situationRecommended practicesreason
The file is downloaded from an email or web page, and there is a prompt bar at the topConfirm in the prompt bar that editing is allowed before proceeding.Files in protected view can only be read, not modified.
The page is in reading view or web layoutSwitch to page view (print layout)These two views do not display headers and footers, and related commands cannot be used.
When modifying, a pop-up message will appear requiring a password.Request password or unrestricted manuscript from file authorOnce restricted editing is enabled, it cannot be lifted without a password.
The file name in the title bar is followed by "Compatibility Mode"Save as .docx format and try againSome features of the older .doc format are limited
All functions of files shared by colleagues cannot be changed.Check if it is marked as final and unmark itDocuments marked final will become read-only

First determine what kind of problem it is

The table below can help you associate symptoms with causes. After making a clear judgment, proceed to the specific repair steps.

symptomsCommon causesHow to confirm
There is a prompt bar at the top of the entire document, and all functions are grayProtected view, file is not enabled for editingLook at the title bar or tooltip to see if it says "Protected View"
The page number command is grayed out, but the main text can be entered normallyThe view is incorrect, or the cursor position is inappropriateSwitch to page view and place the cursor in the body paragraph before reading
Prompts prompt for password requests when modifying, or rejection when savedDocument editing restrictions enabledCheck if the review options are under edit restrictions
The title bar shows "Compatibility Mode"It uses the old .doc formatCheck if the file name extension is .doc
Files cannot save modifications, or each save failsRead-only attributes, marked as final, cloud synchronized occupancyRight-click the file to view its properties and try saving it locally
Page numbers cannot be inserted only in tables or text boxesThe cursor is in a special area, or the content is locked by a controlMove the cursor to the normal main text paragraph and try again

Inspect and fix each item one by one

Check in the following order; the earlier steps are simple and quick, making them suitable for starting first.

  1. Enable editing. If the file is downloaded from an email attachment or a webpage, a Protected View prompt will appear at the top. If you confirm in the prompt bar that editing is allowed, the page number command usually becomes usable.
  2. Switch to page view. Select Page View, which is the print layout, in the View-related options. Reading views and web layouts do not display headers and footers, so page numbers cannot be used in these views. After switching, open the page number settings and take a look.
  3. Place the cursor over the main paragraph. If the cursor is stuck in a table, text box, or shape, the page number command may not be available. Click any ordinary paragraph in the main text of the document and try inserting a page number.
  4. Check for restricted editing. Check the review options to see if the document is in restricted editing status. If enabled, you need to enter a password to unlock it. The password is set by the file author. If you don't have one, you should ask the other party for it instead of trying other ways to bypass it.
  5. Check "Mark as Final." On the file information page, if the document is marked as final, unmarking it will restore editing. Marked documents usually have a hint at the top.
  6. Check file properties and storage locations. Right-click the file in File Explorer, open Properties, and check if "Read Only" is checked. If the file is in a cloud sync folder, compressed package, or email attachment, you can save it to your local hard drive first and then open it in Word.
  7. Save as .docx. If the title bar shows compatibility mode, it means the file is in the older .doc format. Save as .docx and reopen; page numbers and other functions generally work normally.

If all the above steps still don't work, you can create a new Word document, copy the main text, and set the page numbers. This method is suitable for documents with simple structures; complex tables and sections may be misaligned and need to be checked page by page.

How to Prevent It from Happening Next Time

  • Read the prompts before you act. When opening files sent by others, first pay attention to the title bar and the prompt at the top to confirm whether the file is protected or read-only.
  • Switch to page view before setting page numbers. This is a common habit in layout operations, helping to avoid losing the relevant command due to different views.
  • Confirm the status of the document with the sender. If you need the other party to format your documents, you can ask them in advance to unmark them as final, or send an editable version directly.
  • Retain .docx format. Use .docx when creating or saving files to reduce functional limitations caused by outdated formats.
  • Do not mix the main text and formatting in a restricted file. For documents requiring long-term maintenance, try to keep an unencrypted and unmarked source file for easier page numbers and header modifications later.

❓ Frequently Asked Questions (FAQ)

1. The page number setting is gray, but I can input text normally. Why?

Most often, it's a problem with the view or cursor position. First, switch to page view, then place the cursor in the main text section. The page number command should generally be used.

2. Document editing restrictions, I forgot my password, what should I do?

If you don't have a password, the safest approach is to contact the document author and ask them to provide the password or an unrestricted original manuscript. Do not use unrestricted tools from unknown sources, as they may pose security risks and infringe on others' rights.

3. After changing the page numbers, export them to PDF. Can you change the page numbers in the PDF again?

It is not recommended to directly change the page numbers in PDFs. A more reasonable approach is to return to the Word source file to modify the page numbers, then export the PDF again to avoid layout confusion.

4. The page number settings are normal, but the page number does not show on the first page. What does this mean?

This is usually caused by options like "Different homepage," where the homepage uses separate header and footer settings. Check the header and footer options to confirm whether the homepage settings meet your needs.

5. When opening a file with the web version of Word, the page number settings are also grayed out. What should I do?

Web versions usually have more limitations than desktop versions, and some layout features may not be available. It is recommended to open the file on the desktop version of Word on your computer and then set the page number.

📝 Summary

Word page numbers are grayed out, and in most cases, the document is in protected view, reading view, edit-restricted, or read-only mode. By following the steps in this article, most issues can be addressed within minutes. When encountering files that require passwords, you should request permissions from the author rather than trying to bypass them.

Open OmniDoc to edit and export documents online

Updated 2026-11-11