Marking Index Entry Turns On Nonprinting Characters

Last reviewed: February 5, 1998
Article ID: Q110791
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

When you mark an index entry in Word 6.0 for Windows, Word turns on the display of nonprinting characters. This happens whether you mark the entry with the menu options or use the shortcut key ALT+SHIFT+X. This behavior differs from that of Word 2.0, which did not turn on the display of nonprinting characters.

CAUSE

Nonprinting characters are turned on so that you can see the new index entry, which is formatted as hidden text. If hidden text were not turned on, you would not be able to determine that the entry had been successfully marked.

RESOLUTION

Add two lines to the MarkIndexEntry command. Use the steps below to modify the command instructions.

NOTE: If nonprinting characters are currently displayed, running the modified MarkIndexEntry command will turn off their display.

  1. From the Tools menu, choose Macro.

  2. In the Macro Name box, type "MarkIndexEntry" (without the quotation marks).

  3. Choose Create. You should now have the MarkIndexEntry command macro in the macro editing window.

  4. Change the macro from

          Sub MAIN
          Dim dlg As MarkIndexEntry
          GetCurValues dlg
          Dialog dlg
          MarkIndexEntry dlg
          End Sub
    
       to:
    
          Sub MAIN
          ScreenUpdating 0                   ' new line
          Dim dlg As MarkIndexEntry
          GetCurValues dlg
          n = Dialog dlg                     ' changed line
          If n = -1 then MarkIndexEntry dlg  ' changed line
          ShowAll(0)                         ' new line
          End Sub
    
    

  5. From the File menu, choose Close.

  6. When asked if you want to keep the changes to the macro, choose Yes.


KBCategory: kbusage kbmacro
KBSubcategory: kbfield
Additional query words: 6.0 winword word6 6.0a 6.0c 7.0 word95
word7
Keywords : kbfield
Version : 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.