TableOfAuthorities.Category Property

Word Developer Reference

Returns or sets the category of entries to be included in a table of authorities. Read/write Long.

Syntax

expression.Category

expression   A variable that represents a TableOfAuthorities collection.

Remarks

This property corresponds to the \c switch for a TOA field. Values 1 through 16 correspond to the items in the Category list on the Table of Authorities tab in the Index and Tables dialog box. The number 0 (zero), which corresponds to all categories, cannot be used with this property. You can, however, use 0 to specify all categories when you are inserting a table of authorities.

Example

The following example inserts a table of authorities for all categories.

Visual Basic for Applications
  ActiveDocument.TablesOfAuthorities.Add _
    Range:=Selection.Range, Category:=0

This example formats the first table of authorities in the active document to include all citations in the first category (by default, the Cases category).

Visual Basic for Applications
  If ActiveDocument.TablesOfAuthorities.Count >= 1 Then
    ActiveDocument.TablesOfAuthorities(1).Category = 1
End If

See Also