TableOfAuthorities.Category property (Word)
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.
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).
If ActiveDocument.TablesOfAuthorities.Count >= 1 Then
ActiveDocument.TablesOfAuthorities(1).Category = 1
End If
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for