Field Braces Not Ignored During Search in Word for Windows

Last reviewed: February 5, 1998
Article ID: Q77681
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, version 7.0

SUMMARY

In Microsoft Word for Windows, if you search for items that are field results and the search includes a character before the text of the field result, Word cannot find the text. The field characters need to be included in the search string.

MORE INFORMATION

The field characters or braces surrounding the field code are not ignored even if they are turned off or hidden. When viewing the field results, Word remembers that field characters surround the field results. Therefore, when searching for text that includes characters before the text contained in the field result, such as "^p", the matching text is not found.

Steps to Reproduce Problem

  1. In a Word for Windows document, type "See page number:" (without quotation marks).

  2. With the insertion point positioned directly after "See page number:," insert a page field by pressing CTRL+F9 and typing "page" (without the quotation marks). The line should appear as follows:

    "See page number:{page}"

    Note: Verify there is no space between the colon and page field.

  3. Select the page field and update it by pressing F9.

  4. If "1" does not appear in place of the {page} field, press SHIFT+F9 to toggle the field results.

  5. From the Edit menu, choose Replace.

  6. If you are using Word for Windows version 1.x, type ":1" (without the quotation marks) in the Search For box. Choose the OK button.

    If you are using Word for Windows version 2.0, type ":1" (without the quotation marks) in the Find What box. Choose the Find Next button.

  7. The search text is not found, even though it appears on the screen.


KBCategory: kbusage
KBSubcategory: kbfield
Additional query words: 1.x 2.0 2.0a 2.0a-CD word6 winword
6.0a 6.0c 7.0 word95 winword 2.0b 2.0c 6.0 6.0a 6.0c winword2
Keywords : kbfield
Version : 1.x 2.x 6.0 6.0a 6.0c 7.0
Platform : WINDOWS


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 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.