How to Fix Mail Merge Header and Footer Issues in Word
Question details
Users are experiencing formatting issues where the second-page header and footer are incorrectly applied to the first page after performing a mail merge.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Generating multi-page letters or documents using the mail merge feature.
- Observed behavior
- After updating or running the mail merge, the first page of the output document incorrectly displays the header and footer intended for the second and subsequent pages.
Before troubleshooting, save a backup copy of your main mail merge document and your data source. It is also highly recommended to turn on hidden formatting symbols (¶) to easily identify where section breaks are placed.
Configure the 'Different First Page' Setting in the Main Document
Check the header and footer configuration in your template document to ensure the 'Different First Page' option is applied correctly before executing the merge.
When an editable document is produced from a mail merge, each record creates a separate section. If the main document does not have its first-page header configured properly, every merged record will inherit the wrong header settings.
Open the main mail merge document that contains your merge fields.
Double-click the very top area of the first page to open the Header & Footer tab.
In the Options group of the ribbon, check the box labeled 'Different First Page'.
Design your first page header and footer. Then, scroll down to the second page of your template and format the subsequent header and footer differently.
Navigate to Mailings > Finish & Merge > Edit Individual Documents to generate a new output file and verify the sections retain the correct settings.

Adjust and Fix Section Break Types
Ensure that the section breaks separating pages are set to 'Next Page' rather than 'Continuous' to prevent headers from bleeding across pages.
Easily Manage Mail Merges and Headers with WPS Writer
WPS Writer provides a highly intuitive Mail Merge wizard that seamlessly preserves your headers, footers, and complex section formatting. Create customized letters, envelopes, and emails without worrying about frustrating page layout errors.
- 1. Open your template: Open your main document in WPS Writer and go to the 'References' tab, then click 'Mail Merge'.
- 2. Connect data source: Click 'Open Data Source' to connect your spreadsheet or contact list.
- 3. Verify header settings: Double-click the header area to ensure the 'Different First Page' option is checked if you need unique first-page formatting.
- 4. Generate documents: Click 'Merge to New Document' to generate your final files with perfect layout retention.

Frequently Asked Questions
Why does every page in my mail merge have the same header?
This typically happens because the 'Different First Page' setting is not enabled in your main mail merge template. Double-click the header in your template, check 'Different First Page', and separate the designs for page one and page two before running the merge again.
How do section breaks affect mail merge in Word?
By default, running a mail merge to a new document creates a 'Next Page' section break between each record. Headers and footers are section-specific, so if the initial document's section layout is misconfigured, the formatting error will duplicate across hundreds of sections in the output file.
How do I delete a blank page at the end of a mail merge document?
Blank pages are often caused by an extra paragraph mark or section break at the very end of your main mail merge document. Turn on paragraph marks (¶) on the Home tab, go to the end of your template, delete any extra empty lines, and rerun the merge.
Can I have a different footer on the last page of a merged document?
This is challenging to do natively in a standard mail merge because each record forms its own isolated section. You typically need to use advanced IF field codes to compare the current page number to the total page number, or manually adjust the final section after the merge is completed.




