다음을 통해 공유


TableOfAuthorities.EntrySeparator Property (Word)

Returns or sets the characters (up to five) that separate a table of authorities entry and its page number. Read/write String.

Syntax

expression .EntrySeparator

expression A variable that represents a TableOfAuthorities object.

Remarks

The default is a tab character with a dotted leader. Corresponds to the \e switch for a TOA (Table of Authorities) field.

Example

This example inserts a table of authorities into the active document and then formats the table to use a comma between the entries and their corresponding page numbers.

Dim rngTemp As Range 
Dim toaLoop As TableOfAuthorities 
 
Set rngTemp = ActiveDocument.Range(Start:=0, End:=0) 
ActiveDocument.TablesOfAuthorities.Add _ 
 Range:=rngTemp, Category:=1 
For Each toaLoop In ActiveDocument.TablesOfAuthorities 
 toaLoop.EntrySeparator = ", " 
Next toaLoop

This example returns the entry separator for the first table of authorities.

Dim strSeparator 
 
strSeparator = _ 
 ActiveDocument.TablesOfAuthorities(1).EntrySeparator

See Also

Concepts

TableOfAuthorities Object Members

TableOfAuthorities Object