Microsoft KB Archive/60971

Format Replace Command Does Not Find Search Text

PSS ID Number: Q60971 Article last modified on 11-02-1994

4.00 5.00

MS-DOS

= SUMMARY =

The Format Replace command does not always locate formatted text. This is because Format Replace is searching for formatting that has been applied directly to the document. Format Replace does not find and replace text that has been formatted through a style sheet.

The following example demonstrates the way Format Replace works:


 * 1) Type two words.
 * 2) Select the first word.
 * 3) Format the first word as bold by pressing ALT+X+B.
 * 4) Create a character style in the currently attached style sheet that will format characters for bold.
 * 5) Select the second word.
 * 6) Apply the character style previously created in the style sheet.
 * 7) Move the cursor to the top of the document by pressing CTRL+PGUP.
 * 8) In the Format Replace Character menu, set confirm: to Yes and bold: to Yes and press ENTER.
 * 9) In the Replace With Character Format menu, set bold: to No, italic: to Yes, and press ENTER.

Word selects the first bold word, then gives the prompt “Y to Replace, N to skip, or ESC to cancel.” When Y is entered, the first bold word is changed to italic. Note that the second bold word is not found.

= MORE INFORMATION =

This feature is by design to prevent inadvertent changes of formatting from style sheet formatting (secondary formatting) to direct formatting (primary formatting).

Replacing a text style that has been formatted with a style sheet can be accomplished by using the Format repLace command. Format repLace can also be used to replace paragraph or character formatting that has been directly applied to the text of a document.

KBCategory: kbother KBSubcategory: Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1994.