Step 1: Creating Headings :
Home- >Styles -> Heading 1,Heading2
Category 1
SubCategory 11
SubCategory 111
Category 2
SubCategory 22
SubCategory 222
Apply Category 1, Category 2 with Heading 1
Apply SubCategory 11, SubCategory 111,Subcategory22,SubCateogry222 with Heading 2
Step 2:
References – > Table of Contents -> Automatic Table
Step 3: Update Field
Right click on Table of Contents->Select Update Field->Update Entire table
Posted by ambatisreedhar