The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,977 other subscribers

Word: have part of Heading 1/2/3 not show up in the table of contents

Posted by jpluimers on 2021/10/01

Every now and then, for instance with a document including other documents, like in a homework assignment, you might want to exclude part of your Heading 1 (or Heading 2/Heading 3) entries from the table of contents.

Since presence in the Table of Contents is a ToC feature, not a style feature, you have to set the correct options in the ToC.

This is how you do it:

  1. Create new styles for the headings you do not want in the ToC (I call them “Heading 1, no ToC”; “Heading 2, no ToC”; etcetera) and base each on the corresponding style “Heading 1” or “Heading 2”

  2. Modify your Table of Contents to exclude these new styles (as they are automatically included)

This is contrary to many advices to use the “Reference” toolbar, then “Add Text” marked “Do Not Show In Table Of Contents”. That advice will remove the heading formatting completely and remove it from the navigation pane, so do not follow [WayBack] Quick Tip: How to exclude headings from the Table of Contents in Microsoft Word –

The above solution both keeps the formatting, and the appearance in the navigation pane. It only disappears from the Table of Contents.

It is based on:

Following the above steps, you get styles like this:

And a table of contents with a different field definition:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: