TabStop.Leader property (Publisher)
Sets or returns a PbTabLeaderType constant that represents the leader character for a tab stop. Read/write.
Syntax
expression.Leader
expression A variable that represents a TabStop object.
Return value
PbTabLeaderType
Remarks
The Leader property value can be one of the PbTabLeaderType constants declared in the Microsoft Publisher type library.
Example
This example changes the leader tab character of the selected paragraphs to dashes. This example assumes that the selected paragraph contains at least one tab stop.
Sub SetLeaderTab()
Selection.TextRange.ParagraphFormat _
.Tabs(1).Leader = pbTabLeaderDashes
End Sub
This example changes the leader tab character of the first paragraph in the specified text range to an underline. This example assumes that the specified paragraph contains at least one tab stop.
Sub SetNewTabLeader()
ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange.Paragraphs(1) _
.ParagraphFormat.Tabs(1).Leader = pbTabLeaderLine
End Sub
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.