TabLeader Property
From Microsoft Word Visual Basic
TabLeader Property
Returns or sets the character between entries and their page numbers in an index, table of authorities, table of contents, or table of figures. Read/write WdTabLeader.
| WdTabLeader can be one of these WdTabLeader constants. |
| wdTabLeaderDashes |
| wdTabLeaderDots |
| wdTabLeaderHeavy |
| wdTabLeaderLines |
| wdTabLeaderMiddleDot |
| wdTabLeaderSpaces |
expression.TabLeader
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example formats the tables of contents in Sales.doc to use a dotted tab leader.
For Each aTOC In Documents("Sales.doc").TablesOfContents
aTOC.TabLeader = wdTabLeaderDots
Next aTOC
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