When you run a Word mail merge, the page numbers in the preview or final output may restart at 1 for each recipient section. This happens because Word treats each merged record as a new section break, and page numbering is set to restart at section boundaries. The issue is common when merging letters, labels, or envelopes where each recipient appears on a separate page or group of pages. This article explains the root cause of the restarting page numbers and shows how to force continuous numbering across all merged records.
Key Takeaways: Controlling Page Numbering in Mail Merge Output
- Insert > Page Number > Format Page Numbers > Continuous numbering: Prevents each recipient section from restarting page count at 1.
- Section break type in the main document: Word inserts a section break between records; the Link to Previous setting in headers or footers must be active to carry numbering forward.
- Alt+F9 to view field codes: Reveals the
PAGEfield and any\rswitch that forces restarting.
Why Word Restarts Page Numbers at Each Recipient in Mail Merge
Word mail merge works by creating a main document that contains the merge fields. When you complete the merge, Word duplicates that main document content for each data source record. Between each copy of the content, Word inserts a section break. The type of section break depends on the merge setup: for letters, Word uses a next-page section break; for labels, it uses a continuous section break or a next-page break depending on the label layout.
Each section break creates a new section in the merged document. By default, Word sets page numbering in each new section to start at 1. This is controlled by the Start at setting in the Format Page Numbers dialog, which is set to 1 for each new section. Even if you set the first section to start at a different number, subsequent sections inherit the default restart behavior unless you explicitly change it.
The Role of the Section Break Type
The section break type determines how the page numbering reset behaves. A next-page section break forces the following content to begin on the next physical page and resets the page counter. A continuous section break does not force a new page, but it still creates a new section, and page numbering can restart if the Start at setting is active. In mail merge, the break type is controlled by the Mail Merge settings under Mailings > Finish & Merge > Edit Individual Documents and the Merge to Printer options.
How the PAGE Field Handles Sections
The PAGE field in Word respects the section numbering rules. When you insert a page number via Insert > Page Number, Word inserts a PAGE field inside a header or footer. Each section can have its own header or footer, and each section can have a different Start at value. If the header or footer is not linked to the previous section, the page number resets. Even if the header is linked, the Start at value can still force a restart.
Steps to Prevent Page Number Restart in Mail Merge Output
To keep page numbers continuous across all merged records, you must modify the page number format in the main document before merging. The following steps work for a mail merge main document that already contains the merge fields and headers or footers.
- Open the mail merge main document
Open the document that contains the merge fields. Do not merge yet. Ensure you are in the main document view, not the preview results. - Double-click the header or footer area
Double-click the header or footer where the page number appears. This opens the Header & Footer tab. If no page number is present, insert one using Insert > Page Number and choose a position. - Right-click the page number and choose Format Page Numbers
Right-click the page number field (it may show as Page 1 or just the number) and select Format Page Numbers from the context menu. The Page Number Format dialog opens. - Select Continue from previous section
In the Page Number Format dialog, under Page numbering, select Continue from previous section. Click OK. This tells Word to not restart numbering at this section. - Enable Link to Previous for each section
In the Header & Footer tab, click Link to Previous to ensure the header or footer in this section is connected to the previous section. The button should appear highlighted (selected). If it is not selected, click it once to enable the link. Repeat this step for every section in the document. You can navigate between sections using the Previous Section and Next Section buttons in the Header & Footer tab. - Check all sections by cycling through them
Use the Next Section button to move through each section. For each section, verify that Link to Previous is active and the page number format is set to Continue from previous section. If any section shows a different setting, correct it. - Run the mail merge
Go to Mailings > Finish & Merge > Edit Individual Documents. Choose All and click OK. Word creates a new document with all merged records. Scroll through several pages to confirm page numbers continue without resetting.
If Page Numbers Still Restart After the Main Fix
Page Number Resets Despite Setting Continue from Previous Section
If you set Continue from previous section in every section but page numbers still restart, the issue is likely a corrupted section break or a field code that overrides the setting. Press Alt+F9 to display field codes. Look for a PAGE field that contains a \r switch, such as { PAGE \ MERGEFORMAT \r 1 }. The \r switch forces the page number to restart at 1. Delete the \r switch and the number after it. Press Alt+F9 again to hide field codes.
Page Numbering Restarts After a Specific Recipient Only
If the restart occurs only after a certain recipient, that recipient may contain a manual section break or a page break that was part of the data source. Check the data source for any field that contains line breaks or section break characters. Clean the data source by removing extra line breaks in the affected field. Alternatively, edit the merged document after merging and manually adjust the section break settings for that specific section.
Page Number Shows Different Starting Value in Different Sections
Some sections may show a Start at value other than 1, such as 5 or 10. This happens if you previously set a custom start value. Open the Page Number Format dialog for each section and select Continue from previous section. If the option is grayed out, the header or footer is not linked to the previous section. Enable Link to Previous first, then change the page number format.
Mail Merge Page Numbering: Main Document vs Merged Output
| Item | Main Document | Merged Output |
|---|---|---|
| Number of sections | One section (unless you inserted manual breaks) | Multiple sections — one per recipient record |
| Page number default | Continuous from page 1 | Restarts at 1 for each new section |
| Section break type | None (unless manually added) | Next-page section break between records |
| Header/footer linking | Not applicable (single section) | Each section can be independent; linking is off by default |
| Fix location | Set Continue from previous section and enable Link to Previous | Same settings apply — they are copied from the main document |
You can now prevent page number restarts in mail merge output by setting Continue from previous section and enabling Link to Previous in every section of the main document. After applying these settings, run a test merge with a small subset of recipients to verify the numbering. For advanced control, use the Alt+F9 field code view to remove any \r switch that forces a restart. If you work with multi-page letters, consider adding a NUMPAGES field in the footer to show total pages across all merged records.