Article ID: 119861
Article Last Modified on 8/16/2005
APPLIES TO
- Microsoft Word 2.0 Standard Edition
- Microsoft Word 2.0a
- Microsoft Office Word 2003
- Microsoft Word 2.0c
- Microsoft Word 6.0 Standard Edition
- Microsoft Word 6.0a
- Microsoft Word 6.0c
- Microsoft Word 95 Standard Edition
- Microsoft Word 95a
- Microsoft Word 98 for Macintosh
- Microsoft Word 6.0 for Macintosh
- Microsoft Word 6.01 for Macintosh
- Microsoft Word 6.01 for Macintosh
This article was previously published under Q119861
SYMPTOMS
When an item to be indexed appears on consecutive pages, Word represents
those pages individually in the index, rather than showing them as a range.
This happens even when you use the \g switch to gather ranges.
For example, if the word "Apple" appears on pages 4, 5, 6, and 7, Word
lists each page separately in the index:
rather than showing a range:
Using the \g switch without also using bookmarks and XE fields does not
change the way the index appears.
CAUSE
By design in Word, when you compile an index in a document that contains
multiple XE fields for identical index entries, Word lists a page number
for each index entry (for example, Apple, 4, 5, 6, 7). In contrast, when
the range of pages is bookmarked, Word compiles the index showing this
range (for example, Apple, 4-7).
WORKAROUND
Use bookmarks and a special XE field to tell Word to show a range for
certain words.
Word versions 6.x and 7.x and Word 98 Macintosh Edition
- Highlight the range of pages on which the word appears.
- On the Insert menu, click Bookmark.
- Type a name for the bookmark. A good name to use is the word you are
indexing.
- Click Add.
- Place the insertion point somewhere in the area you applied the
bookmark to.
- On the Insert menu, click Index And Tables.
- Select the Index tab.
- Click Mark Entry.
- In the Main Entry box, type the word as you want it to appear in the
index.
- Select the Page Range option.
- In the Bookmark box, select the bookmark name you applied.
- Click Mark.
- Click Close.
When you insert the index, it will include the range over which the word
appears. An en dash separates the page numbers. If you want to change this
character, see the "More Information" section of this article.
Word version 2.x
- Highlight the range of pages on which the word appears.
- On the Insert menu, click Bookmark.
- Type a name for the bookmark. A good name to use is the word you are
indexing.
- Click OK.
- Place the insertion point somewhere in the area you applied the bookmark
to.
- Turn on Show All Characters, if it is not already on.
- Press CTRL+F9 to insert field braces.
- Type in the field, so it appears like this:
{XE "word" \r "bookmarkname"}
When you insert the index, it will include the range over which the word
appears. An en dash separates the page numbers. If you want to change this
character, see the "More Information" section below.
Additional query words: index entry xe bookmark range page pages switch
Keywords: kbhowto kbfield KB119861