How to Fix Word Mail Merge Resetting Heading Numbering and TOC
Question details
Running a mail merge in Word alters document formatting, specifically affecting heading numbering, bookmarks, and the Table of Contents layout.

- 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.
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.
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.
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.
Scroll to the corrupted Table of Contents in your document, highlight the entire block, and press the 'Delete' key.
Navigate to the 'References' tab, click on 'Table of Contents', and select 'Custom Table of Contents...' to generate a fresh, correctly formatted layout.

Use the Directory Merge Type to Prevent Numbering Resets
Switching the mail merge type to 'Directory' helps maintain continuous heading numbering across multiple section breaks.
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. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install and Launch: Run the installer and open WPS Writer once the installation is complete.
- 3. Open your Document: Drag and drop your existing .docx file into WPS Writer to continue editing with stable formatting.

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.




