![]() ![]() Word Object Model Reference Support and feedback ActiveDocument.TablesOfContents(1).UpdatePageNumbers The following example updates the page numbers of the items in the first table of figures in the active document. The index number represents the position of the table of contents in the document. Use TablesOfContents (Index), where Index is the index number, to return a single TableOfContents object. ![]() UseFields:=False, UseHeadingStyles:=True, _ Set myRange = ActiveDocument.Range(Start:=0, End:=0)Ī Range:=myRange, _ The example builds the table of contents from all paragraphs styled as either Heading 1, Heading 2, or Heading 3. The following example adds a table of contents at the beginning of the active document. Use the Add method to add a table of contents to a document. The following example inserts a table of contents entry that references the selected text in the active document. Use the TablesOfContents property to return the TablesOfContents collection. A collection of TableOfContents objects that represent the tables of contents in a document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |