Document.TablesOfAuthorities Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a TableOfAuthorities collection that represents the tables of authorities in the specified document. Read-only.

expression .TablesOfAuthorities

expression A variable that represents a Document object.

For information about returning a single member of a collection, see Returning an Object from a Collection.

This example adds a table of authorities at the beginning of Sales.doc. The table of authorities compiles references from all categories.

Set myRange = Documents("Sales.doc").Range(Start:=0, End:=0) 
Documents("Sales.doc").TablesOfAuthorities.Add Range:=myRange, _ 
 Category:=0, Passim:=True, IncludeCategoryHeader:=True

This example updates each table of authorities in the active document.

For Each myTOA In ActiveDocument.TablesOfAuthorities 
Next myTOA