logo
search
Formatting Issues

How to Fix Word Mail Merge Resetting Heading Numbering and TOC

Emma BrownEmma Brown Oct 19, 2026 869 views

Question details

Running a mail merge in Word alters document formatting, specifically affecting heading numbering, bookmarks, and the Table of Contents layout.

How to Fix Word Mail Merge Resetting Heading Numbering and TOC Formatting
Product
Microsoft Word
Device & OS
not provided
Scenario
Performing a mail merge on a document that contains multiple section breaks alongside structured headings and a Table of Contents.
Observed behavior
Heading 1 numbering automatically resets after each section break. Additionally, TOC entries turn into blue, underlined hyperlinks, and previously set bookmarks disappear.
Before you start

Save a backup copy of your original document before modifying the merge type or deleting your Table of Contents, to ensure your layout and data are preserved.

Solution 1Recommended

Restore Document Type and Recreate the Table of Contents

Restore the mail merge file to a standard document state and insert a new custom Table of Contents to fix corrupted hyperlinks and restore bookmarks.

When a mail merge corrupts your TOC or turns entries into blue hyperlinks, the most effective fix is to decouple the document from the data source and regenerate the TOC.

1
Convert to a Normal Word Document

Go to the 'Mailings' tab on the ribbon, click 'Start Mail Merge', and select 'Normal Word Document' from the dropdown menu to remove the merge data connection.

2
Delete the corrupted TOC

Scroll to the corrupted Table of Contents in your document, highlight the entire block, and press the 'Delete' key.

3
Insert a Custom TOC

Navigate to the 'References' tab, click on 'Table of Contents', and select 'Custom Table of Contents...' to generate a fresh, correctly formatted layout.

Restore Document Type and Recreate the Table of Contents
Formatting Restored: Generating a Custom Table of Contents will refresh all heading links, page numbers, and bookmarks broken by the previous mail merge process.
Free Microsoft Office alternative

Try WPS Writer for Seamless Document Formatting

If complex document formatting and mail merge features frequently disrupt your workflow, consider switching to WPS Office. WPS Writer is a free, lightweight alternative that offers robust layout management, excellent compatibility with Microsoft Word files, and a familiar user interface.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
  2. 2. Install and Launch: Run the installer and open WPS Writer once the installation is complete.
  3. 3. Open your Document: Drag and drop your existing .docx file into WPS Writer to continue editing with stable formatting.
Fully compatible with Microsoft Word formats (.docx, .doc, .dotm).Stable handling of complex layouts, section breaks, and Table of Contents.Lightweight software that runs smoothly on Windows, Mac, and Linux.Familiar interface ensures a zero-learning-curve migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Table of Contents turn blue and underlined after a mail merge?

During the mail merge process, Word may forcefully convert Table of Contents entries into standard web hyperlinks, applying the default blue and underlined style. Deleting the corrupted TOC and inserting a new Custom Table of Contents will resolve this issue.

What does 'Normal Word Document' mean in the Start Mail Merge menu?

Selecting 'Normal Word Document' disconnects the active document from its external data source (like an Excel spreadsheet). This effectively stops the mail merge process and reverts the file back to a standard, non-merge document.

How can I stop heading numbers from resetting after section breaks?

When using the 'Letters' mail merge type, Word creates new sections for each record, triggering heading resets. Changing your mail merge type to 'Directory' prevents these resets and allows numbering to remain continuous.