Table of contents

Judi Moore 50 Reputation points
2026-10-03T19:47:41.47+00:00

I have been successfully using a customised Table of Contents for my current project. I decided to reorder some of the contents, went to update the ToC, to discover that although it still recognises the various heading levels supplied by Microsoft, it no longer recognises the single heading level which I included, the only one I need, the reason for the customisation. I have just spent half an hour trying to get the updater to recognise that single, important heading level without any success. Updating the ToC now returns gibberish. Please advise.

Microsoft 365 and Office | Word | For home | Windows

Answer accepted by question author
John Korchok 236.5K Reputation points Volunteer Moderator
2026-10-03T20:41:31.51+00:00

Click inside a heading that is in your custom style. On the Style Gallery tile that becomes highlighted, right-click on that tile and choose Modify. In the Modify Style dialog, choose Format>Paragraph and check that the Outline level dropdown is set to Level 1, Level 2 or Level 3.

If it is set to Body Text, it cannot appear in an automatic TOC. If it is set to a level higher than 3, you must modify the TOC field code to either accept higher levels or to display your specific style. Please post again if you need help doing either of these.

Was this answer helpful?

3 people found this answer helpful.

4 additional answers

Sort by: Oldest
  1. John Jefferson Doyon 88,935 Reputation points Independent Advisor
    2026-10-03T20:27:53.46+00:00

    Hi, @Judi Moore

    Have you already gone to "References" > "Table of Contents" > "Custom Table of Contents" > "Options" and checked whether your custom heading style still has a number beside it under "TOC level"?

    That number is what tells Word to include that particular style in the Table of Contents. If it is now blank, enter the TOC level you were previously using, click "OK" twice, then update the entire table again. Also select one of the headings that is currently being missed and confirm under "Home" > "Styles" that your custom style is still actually applied to it.

    Microsoft also confirms that custom Tables of Contents can be configured through "References" > "Table of Contents" > "Custom Table of Contents."

    Reference: https://support.microsoft.com/en-us/word/format-or-customize-a-table-of-contents-in-word

    If it still produces the incorrect entries, could you post a screenshot of the "Table of Contents Options" window and tell me the exact name of the custom heading style you created?


    Click "Add comment" to let me know.

    Thanks!

    Was this answer helpful?

    1 person found this answer helpful.

  2. Jay Freedman 208.3K Reputation points Volunteer Moderator
    2026-10-03T20:51:45.0666667+00:00

    The headings that are displayed in a table of contents are controlled by the items in the field code of the TOC field. To see the code, press the keyboard shortcut Alt+F9 (or Alt+Fn+F9 on some laptops). That's a toggle; if you press the same keys again the code will be replaced by the full display. The code should look something like this:

    4

    where the part following the \t switch tells Word to display any heading formatted with "Special heading 3" style in the TOC at level 3 (using TOC 3 style). [This and other parts of the TOC field syntax are explained at https://support.microsoft.com/en-us/word/field-codes-toc-table-of-contents-field.]

    To get this kind of code in a custom TOC, click References > Table of Contents > Custom Table of Contents. In the dialog, click the Options button. In the next dialog, scroll down the list of available styles to find the style you're using for your special headings. In the "TOC level" box to the right of that style, enter the TOC level where you want these headings to appear [this doesn't have to be the same as the style's Outline Level in the Modify Style dialog].

    3

    When you click OK in the Table of Contents dialog, if there's already a TOC in the document you'll be asked whether to replace the existing TOC -- generally you'll say yes.

    The result of the field code shown above is this:

    5

    Was this answer helpful?

    3 people found this answer helpful.

  3. Stefan Blom 353.8K Reputation points MVP Volunteer Moderator
    2026-10-04T13:36:40.2433333+00:00

    I have not needed to consider 'regional setting factors' or separators this century with Microsoft software. Alt+F9 produces no result. What key is 'Fn'?

    I am in the UK using Windows 11 and Office365 (regularly and automatically updated) running under that.

    I am an experienced user of Office. I do not, however, have a degree in computer science. Increasingly, that seems to be essential to get a tune out of the complex and fragile systems users are expected to put up with. Sorry to rant. It's not your fault. But this sort of thing is now wasting hours of my time, every week!

    These days many keyboards have a special Fn ("Function") key which alters the behavior of the F1–F12 keys which are located at the top of your keyboard. Many PC manufacturers "hijack" the F1–F12 keys for functions such as changing contrast, and therefore the Fn key must often be added when you invoke a shortcut.

    The Fn key should be located next to the Ctrl key on a standard PC keyboard.

    Pressing Alt+Fn+F9 will reveal field codes. The TOC field (see also Jay's reply) displays something like this:

    User's image

    My system is using Swedish regional settings, which is why the semicolon is used for the custom style (between the style name and the level number). In the UK, you likely have the comma. Anyone who shares files with other countries may be affected by regional settings in field codes (and also by localized names of styles, etc.). :-)

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  4. Judi Moore 50 Reputation points
    2026-10-05T19:28:14.66+00:00

    Thank you all. My ToC is now restored. I'm afraid, in the end, it came down to the usual 'switch it off and on again'. Why the software should have decided to drop the essential heading level number, or refuse to let me add one, or redescribed my heading as body text, who can say. But peace has returned to my contents page.

    Doubtless, this week, there will be another half a dozen glitches, wasting hours of my time. Never let anything technological know you have a deadline looming, eh?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.