The best way to generate a table of contents is to apply the predefined heading paragraph styles, such as "Heading 1", to the paragraphs that you want to include in your table of contents. After you apply these styles, you can then create a table of contents.
Click in your document where you want to create the table of contents.
Choose Insert - Table of Contents and Index - Table of Contents, Index or Bibliography, and then click the Type tab.
Select "Table of Contents" in the Type box.
Select any options that you want.
Click OK.
If you want to use a different paragraph style as a table of contents entry, select the Additional Styles check box in the Create from area, and then click the Assign styles button next to the check box. In the Assign Styles dialogue box, click the style in the list, and then click the >> or the << button to define the outline level for the paragraph style.
Office creates the table of contents entries based on the outline level of the paragraph style and the paragraph contents. If the paragraph is empty, it will not be included in the table of contents. To force the empty paragraph to be listed in the table of contents, manually add a space or a non-breaking space to the paragraph. Spaces added in the After text box of the Numbering tab in the Chapter Numbering dialogue box will not work for this purpose, since they are part of the paragraph numbering, not the paragraph contents.
Do one of the following: