Formatting Issues

How to Fix Mail Merge Header and Footer Issues in Word

Adam DavisAdam Davis Oct 28, 2026 869 views

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.

How to Fix Mail Merge Header and Footer Issues in Word
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 you start

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.

Solution 1Recommended

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.

1
Open the template

Open the main mail merge document that contains your merge fields.

2
Access header settings

Double-click the very top area of the first page to open the Header & Footer tab.

3
Enable different first page

In the Options group of the ribbon, check the box labeled 'Different First Page'.

4
Format headers independently

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.

5
Run the mail merge

Navigate to Mailings > Finish & Merge > Edit Individual Documents to generate a new output file and verify the sections retain the correct settings.

Configure the 'Different First Page' Setting in the Main Document
Verify settings across sections: If your main document already contained multiple sections before the merge, ensure 'Different First Page' is checked for every individual section in the template.
Seamless Mail Merge Solution

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. 1. Open your template: Open your main document in WPS Writer and go to the 'References' tab, then click 'Mail Merge'.
  2. 2. Connect data source: Click 'Open Data Source' to connect your spreadsheet or contact list.
  3. 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. 4. Generate documents: Click 'Merge to New Document' to generate your final files with perfect layout retention.
Accurate preservation of 'Different First Page' headers and footers during merges.Fully compatible with Microsoft Word (.docx) documents and Excel (.xlsx) data sources.Intuitive step-by-step Mail Merge wizard for beginners and professionals.Free, lightweight, and fast office suite for all your document needs.
microsoft office alternative - wps office

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.