Fix Word Index Still Showing Entries After Deleting XE Fields
Question details
The user needs to completely remove index entries from a Word document that continue to appear even after the visible XE (index-entry) fields have been deleted.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Updating a document's index after attempting to remove specific index entries manually.
- Observed behavior
- The updated index still displays the deleted entries because hidden XE fields remain undetected in other document areas like text boxes, footnotes, or endnotes.
Make sure to create a backup copy of your document before running any VBA macros or bulk-deleting fields, and ensure that your formatting marks are turned on so you can see hidden text.
Reveal and Manually Delete Hidden XE Fields
Use the Show/Hide feature to reveal hidden text and locate remaining XE fields scattered in secondary document areas.
Index entries are generated strictly from XE fields. If an entry persists, an XE field containing that item still exists. They often hide in areas outside the main body text, such as text boxes, shapes, footnotes, and endnotes.
Navigate to the Home tab on the ribbon and click the Show/Hide ¶ (paragraph mark) button to reveal hidden text and non-printing characters.
Manually inspect footnotes, endnotes, and text boxes for curly bracket codes resembling { XE "YourEntry" }.
Highlight the entire hidden XE field code, including the brackets, and press the Delete key.
Right-click on your document's index and select Update Field to refresh the list and confirm the entry is gone.

Use VBA to Inspect and Remove Remaining Fields
Utilize the built-in VBA Immediate window to programmatically count, inspect, and delete hidden XE fields across all story ranges.
Delete and Rebuild the Index
Clear the existing index block entirely and insert a fresh one to rule out corruption in the INDEX field itself.
Manage Document Indexes Easily with WPS Office
WPS Writer provides an intuitive interface for managing complex document elements like indexes, fields, and hidden text. It allows you to easily toggle formatting marks to track down stubborn XE fields.
- 1. Open your document: Launch WPS Writer and open the document containing the problematic index.
- 2. Reveal hidden marks: Go to the Home tab and click the Show/Hide Editing Marks icon to make all hidden XE fields visible.
- 3. Remove unwanted fields: Locate the lingering { XE } codes in text boxes or footnotes, select them, and press Delete.
- 4. Update your index: Right-click the index and choose Update Field to successfully remove the ghost entries.

Frequently Asked Questions
Why are my deleted index entries still appearing?
Index entries are generated directly from XE fields. If an entry still appears after updating, a hidden XE field likely remains in another part of the document, such as a footnote, endnote, or text box.
How do I view hidden XE fields in my document?
Go to the Home tab and click the Show/Hide ¶ (paragraph mark) button. This reveals all hidden text and non-printing characters, making the hidden XE fields visible.
Can XE fields in headers and footers affect the index?
Generally, XE fields located within headers and footers are not included in a standard INDEX field calculation. You should primarily check text boxes, footnotes, and endnotes.
Why didn't Find and Replace remove all my XE fields?
Find and Replace might miss fields if hidden text is not actively displayed during the search, or if the field codes contain extra spaces and invisible formatting characters that disrupt the search string.




