Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

The XE (Index Entry) field defines the text and page number for an index entry. You insert an XE field to define an item to include in the index.

The XE field is formatted as hidden text and displays no result in the document. To view this field, click Show/Hide Paragraph mark Button image.

Security Note: Because content that is formatted as hidden text can easily be made visible, do not use hidden text formatting to keep sensitive information private.


When you view the XE field in your document, the syntax looks like this:

{ XE "Text" [Switches ] }

Note:  A field code tells the field what to show. Field results are what’s shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.



Text you want to appear in the index. To indicate a subentry, include the main entry text and the subentry text, separated by a colon (:).



Applies bold formatting to the entry's page number. The field { XE "Highlighting text" \b } displays the entry as "Highlighting text, 23" in the index. The switch removes bold formatting if the index style for the entry is bold.

\f "Type"

Defines an entry type. The entry for the field { XE "Selecting Text" \f "a" } is included only in an index inserted by the field { INDEX \f "a" }. The default entry type is "i."


Makes the entry's page number italic. The field { XE "Finding text" \i } displays the entry as "Finding text, 23 " in the index. The switch removes the italic formatting if the index style for the entry is italic.

\r Bookmark

Inserts as the entry's page number the range of pages marked by the specified bookmark. The field { XE "Selecting text" \r SelectingText } displays the entry as "Selecting text, 20–25" in the index.

\t "Text"

Inserts the text in place of a page number. Enclose the text in quotation marks. The field { XE "Highlighting" \t "See Selecting" } displays the entry "Highlighting, See Selecting" in the index.


Specifies that the subsequent text defines the yomi (first phonetic character for sorting indexes) for the index entry.

Note: This switch can be used if you have at least one East Asian language enabled.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Office Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!