Share via


ClearAll Method [Publisher 2003 VBA Language Reference]

Clears all the custom tab stops from the specified paragraphs.

expression.ClearAll

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

To clear an individual tab stop, use the Clear method of the TabStop object. The ClearAll method doesn't clear the default tab stops. To manipulate the default tab stops, use the DefaultTabStop property for the document.

Example

This example clears all the custom tab stops in the first shape on the first page of the active publication. This example assumes that the specified shape is a text frame and not another type of shape.

Sub ClearAllTabStops()
    ActiveDocument.Pages(1).Shapes(1).TextFrame _
        .TextRange.ParagraphFormat.Tabs.ClearAll
End Sub

Applies to | TabStops Collection