Customize a Word Template Table of Contents with Custom Heading Styles
Question details
Configure a company Word template so users can insert a table of contents that recognizes custom heading styles at levels 1, 2, and 3.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- A company distributes a Word template with custom heading styles and wants a predefined table of contents for many users.
- Observed behavior
- The desired table of contents uses the company's custom heading styles for its first three levels.
Open the company template in Word and identify the exact custom style names for heading levels 1, 2, and 3. If possible, add a sample heading with each style so you can test the table of contents.
Save a custom table of contents in the Word template
Use this approach when every document created from the template should include the configured table of contents.
This adds a configured table of contents to the template; it does not change Word's built-in Automatic Table 1 gallery entry.
In Word, select File > Open and open the company template file for editing.
Place the cursor where the table should appear, then select References > Table of Contents > Custom Table of Contents.
Select Options. In the TOC level boxes, assign 1, 2, and 3 to the corresponding custom heading styles. Clear the level numbers for other styles if they should not appear, then select OK.
Select OK to insert the table of contents. Apply the custom styles to sample headings, then select the table and choose Update Table > Update entire table to check all three levels.
Remove any sample content that should not be distributed, then use File > Save or File > Save As to save the changes as a Word template. Distribute the updated template to users.
Save the configured table of contents as an AutoText entry
Use AutoText when users should insert the predefined table of contents at a location of their choice.
Create document tables of contents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for working on documents and tables of contents. Its Microsoft Word format compatibility helps you move existing files into WPS, though it does not change the built-in Automatic Table 1 in Microsoft Word.

Frequently Asked Questions
How do I assign custom styles to table of contents levels?
In Word, select References > Table of Contents > Custom Table of Contents > Options. Enter the desired level number next to each custom style, then select OK.
Does saving a custom table change Automatic Table 1 for everyone?
No. Saving a configured table in the template gives users that table, but it does not alter Word's built-in Automatic Table 1 gallery entry.
Why does the table of contents show an error in a new document?
There may be no headings using the mapped styles yet. Apply a mapped style to at least one heading, then select the table and choose Update Table.
Will the updated template change existing documents automatically?
No. Distributing an updated template does not automatically replace the table of contents in existing documents. Open each document and configure or insert the table there if needed.
Where can users find a saved AutoText table of contents?
With the template containing the entry available to Word, users can place the cursor in the document and select Insert > Quick Parts > AutoText, then choose the saved entry.




