Share via


Reset Method [Publisher 2003 VBA Language Reference]

Removes manual paragraph or text formatting from the specified object and leaves only the formatting specified by the current text style.

expression.Reset

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

Example

The following example resets the character formatting of the text in shape one on page one of the active publication to the default character formatting for the current text style.

ActiveDocument.Pages(1).Shapes(1) _
    .TextFrame.TextRange.Font.Reset

The following example resets the paragraph formatting of the text in shape one on page one of the active publication to the default paragraph formatting for the current text style.

ActiveDocument.Pages(1).Shapes(1) _
    .TextFrame.TextRange.ParagraphFormat.Reset

Applies to | Font Object | ParagraphFormat Object