Apply heading styles to your document titles and section headings
Place the cursor where you want the table of contents
Go to the References tab
Click Table of Contents
Choose an automatic table of contents style
Update the table of contents when changes are made
Right-click the table of contents and select Update Field
Choose Update entire table or Update page numbers only
