How to create multiple indexes in the same MS Word document


When you mark an Index entry, Word enters this “XE” code behind the scenes: {XE “Some keyword”}

When you insert in your document the list of entries, that is the Index itself, Word uses this “INDEX” code: {INDEX}

To view field codes in your document, press Ctrl+Shift+Asterisk

Both codes, that of the entries and that of the Index, can be customized to become unique and support several specialized Indexes. For instance, to create an Index for places and another one for monuments, you can modify the codes above adding an “f” switch.

For all the entries of places, use a field code like {XE “Boston” \f “1”}, and for the final Index of Places, use a code like {INDEX \f “1”}.

For all the entries of monuments, use a code like {XE “Bunker Hill” \f “2”}, and for the Index of Monuments, use a code like {INDEX \f “2”}.

As you notice in the examples above, the f switch connects an Index with its entries and it must be identical. A field code can have only one f switch. In our example, if you have a place and a monument with the exact same name, you need to create two Index entries.

In case that Index ID numbers (the f switch) confuse you, just add a description, for instance: “1places”, “2monuments”. Word will stick to the first character, the ID number, and you take advantage of the rest to make sure you won’t mark an entry for the wrong Index.