Document.TablesOfContents Property
Word Developer Reference |
Returns a TablesOfContents collection that represents the tables of contents in the specified document. Read-only.
Syntax
expression.TablesOfContents
expression A variable that represents a Document object.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example adds a table of contents at the beginning of Sales.doc. The table of contents collects entry text from TC fields.
Visual Basic for Applications |
---|
|
This example updates the page numbers for items in the table of contents in the active document.
Visual Basic for Applications |
---|
|
See Also