WD: Control Codes to Use with Find and Replace (Edit Menu)

Last reviewed: February 2, 1998
Article ID: Q95474
The information in this article applies to:
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word for the Macintosh, versions 6.0, 6.0.1, 6.0.1a
  • Microsoft Word 98 Macintosh Edition
  • Microsoft Word for Windows NT, version 6.0
  • Microsoft Word 97 for Windows

SUMMARY

You 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

REFERENCES

In 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 replacing

In Word 97, for more information about finding and replacing special characters, click the Index tab in Help, and type:

   special characters, finding

double-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, finding

double-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
Keywords : ntword winnt winword winword2 word6 word7 word8 word95 word97 wordnt kbualink97
Version : MACINTOSH:6.0,6.0.1,6.0.1a,98;WINDOWS:1.0,1.1,1.1a,2.0,2.0a,2.0a- CD,2.0b,2.0c,6.0,6.0a,6.0c,7.0,7.0a,97
Platform : MACINTOSH WINDOWS winnt
Issue type : kbhowto kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.