how to create document according to table of contents in word code example Example: insert contents page word It's in References > Table of Contents in the ribbon