Apply heading styles to the sections you want included in the table of contents
Place the cursor where you want the table of contents to appear
Go to the References tab
Click Table of Contents
Choose an automatic table of contents style
Update the table of contents after making changes to the document
Right-click the table of contents and select Update Field
Choose Update entire table if needed
Save the document
