Formatting Issues

Fix Word Page Numbers Displaying Incorrectly Until Repaint

Steve KSteve K Oct 23, 2026 869 views

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.

How to Fix Word Page Numbers Displaying Incorrectly Until the Document Repaints
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.
Before you start

Ensure your version of Microsoft Word is fully updated, as background repagination and display rendering issues are frequently addressed in official Office patches.

Solution 1Recommended

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.

1
Reveal Field Codes

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.

2
Locate and Edit the Fields

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.

3
Update the Fields

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.

Remove the MERGEFORMAT Switch from Page Number Fields
Prevent Future Issues: To prevent Word from adding this switch in the future, clear the 'Preserve formatting during updates' checkbox in the Field dialog box when inserting new page numbers.
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS website to download and install WPS Office for free.
  2. 2. Open Your Document: Launch WPS Writer, click 'Open', and select your existing Word document. The page numbers will be rendered accurately right away.
Highly compatible with Microsoft Word (.docx) formatsAccurate real-time rendering of page numbers and complex field codesLightweight and fast performance on both Mac and WindowsFree to download and use with a familiar, easy-to-learn interface
microsoft office alternative - wps office

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.