Class TableOfAuthoritiesCategory (Word VBA)

The class TableOfAuthoritiesCategory represents a single table of authorities category. The TableOfAuthoritiesCategories object is a member of the TablesOfAuthoritiesCategories collection.


To use a TableOfAuthoritiesCategory class variable it first needs to be instantiated, for example

Dim toa as TableOfAuthoritiesCategory
Set toa = ActiveDocument.TablesOfAuthoritiesCategories(Index:=1)

The following procedures can be used to set variables of type TableOfAuthoritiesCategory: TablesOfAuthoritiesCategories.Item and Document.TablesOfAuthoritiesCategories

For Each

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

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


Returns a Long that represents the position of an item in a collection.

Dim lngIndex As Long
lngIndex = ActiveDocument.TablesOfAuthoritiesCategories(1).Index


Returns the name of the specified object.

ActiveDocument.TablesOfAuthoritiesCategories(1).Name =


Returns an object that represents the parent object of the specified TableOfAuthoritiesCategory object.

Dim objParent As Object
Set objParent = ActiveDocument.TablesOfAuthoritiesCategories(1).Parent


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

Dim lngCount As Long
lngCount = ActiveDocument.TablesOfAuthoritiesCategories.Count


Returns an individual TablesOfAuthoritiesCategory object in a collection.

Syntax : expression.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)


Returns an object that represents the parent object of the specified TablesOfAuthoritiesCategories object.

Dim objParent As Object
Set objParent = ActiveDocument.TablesOfAuthoritiesCategories.Parent