WD: Control Codes to Use with Find and Replace (Edit Menu)Last reviewed: February 2, 1998Article ID: Q95474 |
The information in this article applies to:
SUMMARYYou can use the following control codes and special characters in Microsoft Word with the Find and Replace commands on the Edit menu (the Search menu in versions 1.x). NOTE: The caret character (^) must be typed. The caret is created by pressing SHIFT+6. (Don't confuse this symbol with the CTRL key.)
Characters String Matches ------------------------------------------------------------------ ^1 Picture (Except pictures with Float Over Text property, Word 97, Word 98 Macintosh Edition) ^2 Auto-referenced footnotes ^3 Word 1.x: Footnote separator all other versions of Word: this control character is not used ^5 Annotation mark ^9 Tab ^10 Word 1.x: Linefeed all other versions of Word: this control character is not used ^11 Newline ^12 Page OR section break ^13 Carriage return ^14 Column break ^19 Opening field brace (when the field braces are visible) ^21 Closing field brace (when the field braces are visible) ? Word 1.x: Any single character (not valid in the Replace box) all other versions of Word: Question Mark ^? Word 1.x - Word 2.x: Question mark Word 6.x and later: Any single character (not valid in the Replace box) ^- Optional hyphen ^~ Nonbreaking hyphen ^^ Caret character ^# Word 6.x and later: Any digit ^$ Word 6.x and later: Any letter ^& Word 6.x and later: Contents of Find What box (Replace box only) ^+ Word 6.x and later: Em Dash (not valid in the Replace box) ^= Word 6.x and later: En Dash (not valid in the Replace box) ^a Word 6.x - Word 7.0: Annotation (not valid in the Replace box) Word 97, Word 98 Macintosh Edition: Comment (not valid in the Replace box) ^b Word 6.x and later: Section Break (not valid in the Replace box) ^c Replace with Clipboard contents (Replace box only) ^d Word 1.x - 2.x: Section mark Word 6.x and later: Field ^e Word 6.x and later: Endnote Mark (not valid in the Replace box) ^f Word 6.x and later: Footnote Mark (not valid in the Replace box) ^g Word 6.x and later: Graphic (Does not find graphics with the Float Over Text property in Word 97) ^l Newline ^m Word 1.x - 2.x: Duplicates search text (replace only) Word 6.x and later: Manual Page Break ^n Word 1.x - Word 2.x: Linefeed (new line) Word 6.x and later: Column break ^t Tab ^p Paragraph mark ^s Nonbreaking space ^w White space (space, nonbreaking space, tab; not valid in the Replace box) ^nnn Where "n" is an ASCII character number ^0nnn Same as above, but uses ANSI characters (ALT+nnn PC only) (Produces ASCII on Macintosh)NOTE: To search for a specific field, such as an XE (Index Entry) field, use the following syntax:
^19<field name>When you work with either the Search or Replace command in versions 1.x of Word for Windows, you can use the CTRL key to search or replace the following:
CTRL+F = Fonts CTRL+P = Points CTRL+U = Underline CTRL+I = Italic CTRL+K = Small capitals CTRL+W = Underline characters only CTRL+D = Double underline CTRL+PLUS = Subscript SHIFT+CTRL+PLUS = Superscript CTRL+L = Left-aligned text CTRL+R = Right-aligned text CTRL+C = Centered text CTRL+J = Justified (all text) CTRL+SPACEBAR = Clears above selections REFERENCESIn Word 98 Macintosh Edition, for more information about finding and replacing special characters, on the Help menu click "Contents and Index" next click the Index button and then type:
special characters, finding and replacingIn Word 97, for more information about finding and replacing special characters, click the Index tab in Help, and type:
special characters, findingdouble-click the selected topic to go to the "Examples of special characters and document elements you can find and replace" topic. In Word 7.0, for more information about finding and replacing special characters, click the Index tab in Help, and type:
special characters, findingdouble-click the selected topic to go to the "Special characters I can find and replace" topic. For more information about finding and replacing formatting or special characters in versions 2.0, 2.0a, 2.0a-CD, and 2.0b of Word for Windows, refer to pages 260-266 of the "Microsoft Word for Windows User's Guide."
|
Additional query words: ctrl key commands keystroke
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |