Microsoft KB Archive/110791

= Marking Index Entry Turns On Nonprinting Characters =

Article ID: 110791

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition

-



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.

 From the Tools menu, choose Macro. In the Macro Name box, type MarkIndexEntry . Choose Create. You should now have the MarkIndexEntry command macro in the macro editing window.  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  From the File menu, choose Close. When asked if you want to keep the changes to the macro, choose Yes.</li></ol>

Additional query words: 6.0 winword word6 7.0 word95 word7

Keywords: kbfield KB110791

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.