Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Creating a Table of Contents from Heading Levels.

Creating a Table of Contents from Heading Levels

Written by Allen Wyatt (last updated August 29, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


4

If you are writing a long document or a book, you may want to create a Table of Contents (TOC) for your document. The easiest way to create a TOC is to use heading levels, as defined by the Word styles. To do this, follow these steps:

  1. Position the insertion point where you want the TOC inserted.
  2. Choose Index and Tables from the Insert menu. (In Word 2002 or Word 2003, choose Reference from the Insert menu, then choose Index and Tables.) Word displays the Index and Tables dialog box.
  3. Make sure the Table of Contents tab is selected. (See Figure 1.)
  4. Figure 1. The Table of Contents tab of the Index and Tables dialog box.

  5. If you are using Word 97, choose From Template in the Formats list. In later versions of Word, make sure the Formats drop-down list at the bottom of the dialog box is set to From Template.
  6. Using the Show Levels control, specify how many heading levels should be included in the TOC.
  7. Click on OK.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (37) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Creating a Table of Contents from Heading Levels.

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

Read-Only Embedded Fonts

If you receive a document from somebody else, you might not be able to edit it if the document contains fonts that you ...

Discover More

Word Operates Backwards

What is someone to do when all of a sudden Word starts displaying text from right to left instead of left to right? The ...

Discover More

Specifying a Delimiter when Saving a CSV File in a Macro

You can, within a macro, save a workbook in several different file formats that are understood by Excel. However, you may ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (menu)

TOC Heading Numbers Always Show in Bold

Linda's got a document that includes a table of contents that is based on headings in the document. When the headings ...

Discover More

Adding Column Headings to a Table of Contents

Word makes it easy to create a Table of Contents. If you want column headings in that table, getting them takes a bit of ...

Discover More

Page Ranges in a TOC

It is easy to generate a table of contents for a document, and that TOC can contain page number references for each ...

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 two more than 7?

2020-09-10 04:55:08

Ken

The simplest way to get chapter TOCs is:
1. Bookmark the first chapter with bookmark name such as chapt1. Note that bookmark names are case sensitive.
2. At the place where you want the want the TOC for chapter 1 create a TOC for the whole document in the usual way.
3. Click ALT + F9 to display the field code (F9 is function key 9). The result for a three level TOC will look like:
{ TOC \o "1-3" \h \z \u }
4. Add a bookmark switch so that the field code looks like:
{ TOC \o "1-3" \h \z \u \b chapt1 }
5. Repeat steps 1-4 for each chapter with bookmark names chapt2, chapt3…
6. ALT + F9 to display the resultant TOCs
If you don’t want the chapter heading itself to appear in the TOC change the parameter of the \o switch to “2-3”


2020-09-09 08:08:34

Jim Harris

Mr. Wyatt,

You have been a lifesaver to, and time-saver for, me. I have a TOC question that I'm sure you can answer. Can I create chapter TOCs instead of one TOC for all the chapters. For example, Chapter 1 would have it's own TOC listing its subsections. Chapter 2 would have its own. Etc.

Thanks again for your help!


2020-08-30 19:11:14

Freda

Re Updating the ToC (e.g., to add/remove a style or to change a ToC level).
Here's what works for me:

1. Go to the ToC.
2. Press Alt+F9. This displays the ToC field code.
3. Right-click within the code (the curly brackets); choose Edit Field.
4. Click Table of Contents.
5. Click Options.
6. Make your modifications.
7. Click OK twice.
8. Click OK at the prompt "Replace this table of contents?"
9. Press Alt+F9 again. This displays the ToC field result.


2020-08-29 09:43:24

Mike Riley

I have never been able to find the answer to a very important missing tool: UPDATE Table of Contents. I'm not referring to the F9 function that allows you to update only the pages, or choose to recreate the entire Contents. No, I'm talking about when you --for example-- need to add another level that you may have missed or needed when you first created the ToC. You cannot simply go into the settings and add it: you must recreate the whole thing by reselection which levels you want. Otherwise Word will give you the default ToC plus you new addition. So much extra work, especially when you have also created Styles for each level. A major flaw existing for decades.


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon 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.