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