Marking Index Entry Turns On Nonprinting Characters (110791)



The information in this article applies to:

  • Microsoft Word for Windows 6.0
  • Microsoft Word for Windows 6.0a
  • Microsoft Word for Windows 6.0c
  • Microsoft Word for Windows 95

This article was previously published under Q110791

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.
  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.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:kbfield KB110791