Class TablesOfAuthoritiesCategories (Word VBA)

A collection of TableOfAuthoritiesCategory objects that represent the table of authorities categories, such as Cases and Statutes. The TablesOfAuthoritiesCategories collection includes all 16 categories listed in the Category box on the Table of Authorities tab in the Index and Tables dialog box. To use a TablesOfAuthoritiesCategories class variable it first needs to be instantiated, for example


Dim toas as TablesOfAuthoritiesCategories
Set toas = ActiveDocument.TablesOfAuthoritiesCategories

For Each

Here is an example of processing the TablesOfAuthoritiesCategories items in a collection.


Dim toaTablesOfAuthoritiesCategory As TableOfAuthoritiesCategory
For Each toaTablesOfAuthoritiesCategory In ActiveDocument.TablesOfAuthoritiesCategories
	
Next toaTablesOfAuthoritiesCategory

Count

Returns a Long that represents the number of categories in the collection.


Dim lngCount As Long
lngCount = ActiveDocument.TablesOfAuthoritiesCategories.Count

Item

Returns an individual TablesOfAuthoritiesCategory object in a collection.

Item (Index)

Index: The individual object to be returned. Can be a Long indicating the ordinal position or a String representing the name of the individual object.


Dim toaTablesOfAuthoritiesCategory As TableOfAuthoritiesCategory
Set toaTablesOfAuthoritiesCategory = ActiveDocument.TablesOfAuthoritiesCategories(Index:=1)