ClearFormatting Method

See Also         Example         Applies To

Removes any formatting specified as part of a find or replace operation. Corresponds to the No Formatting button in the Find and Replace dialog box (Edit menu).

Note   To ensure that unwanted formats aren't included as criteria in a find or replace operation, use this method before carrying out the operation.

Syntax

expression.ClearFormatting

expression   Required. An expression that returns a Find or Replacement object.