Share via


Clear Method [Publisher 2003 VBA Language Reference]

DropCap object: Removes the dropped capital letter formatting.

PhoneticGuide object: Removes the phonetic information from Japanese text.

TabStop object: Removes the specified custom tab stop.

FindReplace object: Removes the specified search criteria in a find or replace operation.

expression.Clear

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

Example

This example removes the dropped capital letter formatting in the specified text frame.

Sub ClearDropCap()
    ActiveDocument.Pages(1).Shapes(1).TextFrame _
        .TextRange.DropCap.Clear
End Sub

Applies to | DropCap Object | FindReplace Object | PhoneticGuide Object | TabStop Object