Headings in Tables Not Showing in TOC

Written by Allen Wyatt (last updated November 19, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


2

When Peter applies a heading style to a paragraph in a document, that paragraph shows up in the Navigation pane and in any TOC he creates. If he applies a heading style to a paragraph inside a table, that paragraph does not show up in the Navigation pane and the TOC. Peter wonders why this occurs and if there is a way around it.

There are actually two separate items at play here: the inclusion of headings in (1) the TOC and (2) the Navigation pane. It is instructive to discuss each item in turn.

First, the inclusion of headings in the TOC. Headings within your document and within tables should automatically be included in a TOC if that TOC is based on heading styles and if those styles have been applied properly. The biggest potential "gotcha" here is that you may not apply the heading style to the entire paragraph of your heading.

When it comes to styles, the built-in heading styles are defined as Linked styles. This means that they can be applied to an entire paragraph or to any portion of a paragraph. What the style is actually applied to depends on what is selected when you apply the style. In other words, if you select (say) just a word or a phrase in your heading paragraph and then apply the style, it is only applied to that word or phrase, not to the entire paragraph. The problem is that only if the entire paragraph is formatted as a heading will it be included in the TOC.

The easiest way to make sure that you apply the Linked heading style to the entire paragraph is to NOT select any word or phrase in the heading paragraph. Instead, just place the insertion point in the paragraph and then apply the style. You could also, if desired, select the entire paragraph by triple-clicking within the paragraph text. Either way is fine; once you apply the heading style, it will apply to the entire paragraph.

Remember, as well, that if you make any updates to the heading formatting within the document, you'll need to update the TOC. Changes are not reflected automatically. (To update the TOC, right-click on it and choose Update Field.)

If headings in tables are still not showing up in your TOC, then it is possible that your document is exhibiting an early sign of corruption. You can verify this by creating a brand new document, putting some text in it (not text copied from the other document), adding a few tables and headings in it, and generating a TOC. The new document should show the headings from the table in the TOC just fine.

The second item is the inclusion of headings in the Navigation pane. The headings included in the Navigation pane are also only those in which the entire paragraph is formatted with the heading style. The biggest difference between what is included in the Navigation pane and in the TOC is that the Navigation pane does not include any headings in tables or in text boxes. This is a huge shortcoming to some Word users, but it is a shortcoming that has been in Word for years and years.

Unfortunately, there is no way around this shortcoming. The only possible suggestion is a workaround: Break your table into two and place the heading between the two tables as a regular paragraph. This obviously means more work in keeping multiple tables in sync with each other (relative to formatting issues, such as column widths), but it is the only known way to work around the shortcoming.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10146) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Deleting VBA Code in a Copied Worksheet

VBA makes it easy to copy a worksheet from the current workbook into a brand-new workbook. You may want to delete some ...

Discover More

Controlling Entry Order on Unprotected Cells

When you protect a worksheet, one of the benefits is that you can limit which cells can be used for data entry. How a ...

Discover More

Clearing the Clipboard in a Macro

You may want your macro to clear the clipboard so that people cannot access anything left in the clipboard. That is ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Using Multiple Tables of Contents

Adding multiple tables of contents is a must for some types of document design. Here's a great overview of how you can ...

Discover More

Creating a Table of Contents from Heading Levels

If your document is any length at all, adding a table of contents is a nice touch. This tip demonstrates how easy it is ...

Discover More

Jumping Back to the TOC

Word allows you to create a table of contents that provides hyperlinks to headings within your document. It doesn't make ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 + 5?

2022-11-19 12:28:43

John Zelno

Here's another potential workaround for tables not showing up in the navigation pane, at least for cases where the first row of the table is what you want to see in the navigation pane...

1) Select the text in the first row of the table that you want to see in the navigation pane, and create a bookmark for it.
2) In the paragraph just before the table, insert a cross reference to that bookmark
3) Format the cross reference text with a heading style, so it can show up in the navigation pane
4) Format the cross reference to have a font size of 1 point, and a color of white. This makes it nearly invisible, at least on a white background. If you have field shading always turned on, then you'll see a small grey bar just above the table, but this shouldn't show up in any PDFs or printouts.

The advantage of this is that the entire table will continue to have its formatting synchronized, including any header rows that are formatted to repeat across pages.


2022-11-19 05:53:18

Ken Endacott

“The problem is that only if the entire paragraph is formatted as a heading will it be included in the TOC.”

That is not correct. If part of the paragraph has a heading style applied then that part will be included in the TOC provided it starts at the first character of the paragraph. However, it will not appear in the Navigation pane.

The same applies to headings in a table or a textbox and they will appear in the TOC but not the Navigation pane.

This feature is useful where it is desired to include in the TOC the initial part of a long heading. In typical use the underlining paragraph style is non heading but has the same font as the heading style.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.