G
George Seese
When doing a With Find, ".ClearFormatting" is normally included.
I'm trying to understand the logic.
Can you provide examples of what formatting is being cleared?
Is there a situation where it should not be included?
VBA Help says about the ClearFormatting method:
"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."
1. What formatting was "specified as part of a find or replace operation"?
by whom? when?
2. When I do a manual Find in Word, (ie. find word "true"), the No
Formatting option is dimmed. The Find seems to work OK.
3. What are the "unwanted formats" that are exluded when Clear Formatting is
included?
Thanks,
George
I'm trying to understand the logic.
Can you provide examples of what formatting is being cleared?
Is there a situation where it should not be included?
VBA Help says about the ClearFormatting method:
"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."
1. What formatting was "specified as part of a find or replace operation"?
by whom? when?
2. When I do a manual Find in Word, (ie. find word "true"), the No
Formatting option is dimmed. The Find seems to work OK.
3. What are the "unwanted formats" that are exluded when Clear Formatting is
included?
Thanks,
George