Share via


Index.TabLeader Property (Word)

Returns or sets the leader character between entries in an index and their associated page numbers. Read/write WdTabLeader.

Syntax

expression .TabLeader

expression Required. A variable that represents an Index object.

Example

This example adds an index at the end of the active document. The page numbers are right-aligned with a dashed-line tab leader.

Set myRange = ActiveDocument.Range( _ 
 Start:=ActiveDocument.Content.End -1, _ 
 End:=ActiveDocument.Content.End -1) 
ActiveDocument.Indexes.Add(Range:=myRange, Type:=wdIndexIndent, _ 
 RightAlignPageNumbers:=True).TabLeader = wdTabLeaderDashes

See Also

Concepts

Index Object

Index Object Members