Fix Word Page Numbers Displaying Incorrectly Until Repaint
Question details
Users need to resolve an issue where PAGE and NUMPAGES fields show incorrect page numbers on-screen, only displaying the correct values after forcing the document to repaginate or re-render.

- Product
- Microsoft Word
- Device & OS
- Mac and Windows
- Scenario
- Editing or opening a document containing complex field codes, or viewing files generated by third-party reporting software.
- Observed behavior
- Page numbers display inaccurately on the screen and do not update automatically until the user forces a layout refresh by changing the document view, printing, or exporting to PDF.
Ensure your version of Microsoft Word is fully updated, as background repagination and display rendering issues are frequently addressed in official Office patches.
Remove the MERGEFORMAT Switch from Page Number Fields
The MERGEFORMAT switch is often added by default but can interfere with how page numbers refresh. Removing it usually resolves the caching and display issue.
Page numbers in Word are driven by field codes. When fields are inserted via the Field dialog box, Word often appends formatting switches like MERGEFORMAT or Arabic. These switches can sometimes cause the on-screen display to freeze on old values until a full re-render is triggered.
Open your document and press Alt + F9 (or Option + F9 on Mac) to toggle the display from regular page numbers to their underlying field codes.
Find the headers or footers containing the { PAGE } or { NUMPAGES } fields. Look for extra switches inside the brackets, such as \* MERGEFORMAT or \* Arabic, and delete them so only { PAGE } or { NUMPAGES } remains.
Press Alt + F9 again to hide the field codes. Select the page numbers (or press Ctrl + A to select the whole document) and press F9 to manually update all fields.

Force Repagination Manually via View Change or Print
If you need a quick workaround without editing field codes, you can force Word to re-render the document layout to instantly correct the page numbers.
Automate Repagination with a Document Macro
For documents consistently generated by reporting software that exhibit this bug, a simple VBA macro can automatically force repagination every time the file is opened.
Use WPS Office to Avoid Page Numbering Glitches
Tired of page numbers and field codes not updating correctly in Microsoft Word? Try WPS Office. It provides a highly compatible, lightweight, and free alternative that renders document layouts instantly without requiring manual repagination.
- 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
- 2. Open Your Document: Launch WPS Writer, click 'Open', and select your existing Word document. The page numbers will be rendered accurately right away.

Frequently Asked Questions
Why do my page numbers not update automatically in Word?
To optimize performance, Word sometimes disables background repagination or relies on cached layout data. This means field codes like page numbers might not visually update until the document is forced to refresh its layout via printing, exporting, or modifying the view.
What does the MERGEFORMAT switch do?
The MERGEFORMAT switch is a field code instruction in Word that tells the program to retain previous manual formatting whenever the field updates. While useful for custom text styling, it can cause calculation and display glitches in automated fields like PAGE and NUMPAGES.
How can I quickly update all fields in my Word document?
You can update all fields by pressing Ctrl + A (or Cmd + A on Mac) to select the entire document, and then pressing F9. This forces Word to recalculate all inserted fields, including tables of contents and page numbers.
How do I turn on background repagination in Word?
Go to File > Options > Advanced. Scroll down to the 'General' section and ensure that 'Enable background repagination' is checked. Note that this option is typically grayed out in Print Layout view because repagination happens automatically there, but toggling it in Draft view can sometimes resolve caching issues.




