Document Editing Problems

How to Insert an Index Entry Inside a Text Box in Word

Algirdas JasaitisAlgirdas Jasaitis Oct 15, 2026 870 views

Question details

The user needs to insert a document index entry for text located inside a text box, but the standard ribbon tool is disabled.

How to Insert an Index Entry Inside a Text Box in Word
Product
Microsoft Word 2021
Device & OS
not provided
Scenario
Creating a document index and attempting to mark specific terms that are contained within a text box element.
Observed behavior
The Mark Entry command in the References tab is unavailable (grayed out) when text inside a text box is selected.
Before you start

Ensure that nonprinting characters are enabled in your document (by clicking the Show/Hide ¶ button on the Home tab) so you can view hidden XE fields as you work.

Solution 1Recommended

Manually Insert the XE Field Using Keyboard Shortcuts

Use field brace shortcuts to manually code the index entry directly inside the text box.

Even though the graphical Mark Entry button is disabled, Word still processes field codes inserted manually within a text box.

1
Position your cursor

Click inside the text box exactly where you want to insert the index entry.

2
Insert field braces

Press Ctrl+F9 (or Ctrl+Fn+F9 on certain laptops) to insert a pair of dynamic field braces { }.

3
Type the XE code

Inside the braces, type XE followed by a space, and then type your index term enclosed in quotation marks. The final field should look like this: { XE "your index term" }.

Manually Insert the XE Field Using Keyboard Shortcuts
Hidden Text Formatting: XE fields are formatted as hidden text. If the field disappears after you click away, toggle your nonprinting characters to make it visible during editing.
Manage Documents Easily

Create and Manage Index Entries Effortlessly in WPS Writer

If you frequently work with complex document layouts and need reliable referencing tools, WPS Writer provides a highly compatible and intuitive environment for managing index entries.

  1. 1. Open your document: Launch WPS Writer and open the document you wish to index.
  2. 2. Select the text: Highlight the term or phrase you want to include in your document's index.
  3. 3. Mark the entry: Navigate to the References tab on the top ribbon and click the Mark Entry button.
  4. 4. Generate the index: Click Insert Index from the References tab to automatically compile your marked entries into a formatted list.
Highly compatible with Microsoft Word .docx files, preserving all manually inserted XE fields and generated indexes.Comprehensive References tab makes marking entries, inserting tables of contents, and managing citations straightforward.Free and lightweight alternative that minimizes system resource usage without sacrificing professional editing features.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the Mark Entry button grayed out in Word?

Microsoft Word disables certain referencing features, such as Mark Entry, when your cursor is inside drawing objects like text boxes or shapes. You must manually code the fields or move them from a standard paragraph.

How do I make hidden XE fields visible?

XE fields are formatted as hidden text by default. To view them, go to the Home tab and click the Show/Hide ¶ button, or press the shortcut Ctrl+* (Ctrl+Shift+8).

Can I type standard curly brackets { } on my keyboard to create an XE field?

No. Standard curly brackets typed from the keyboard will be treated as plain text. You must use the Ctrl+F9 shortcut to insert functional dynamic field braces.

How do I update the document index after adding a manual entry?

Once you have manually added your { XE } fields, scroll to your generated index, click anywhere inside it, and press F9. Alternatively, right-click the index and choose Update Field.