WD: How to Have More Than One Index in a Document

Last reviewed: February 3, 1998
Article ID: Q154025
The information in this article applies to:
  • Microsoft Word for the Macintosh, versions 6.0, 6.0.1
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows
  • Microsoft Word 98 Macintosh Edition

SUMMARY

This article describes how to create multiple indexes within one document. You may want to create multiple indexes, for example, when you need to have an index at the end of each section or chapter as well as at the end of your document.

MORE INFORMATION

To create multiple indexes, follow these steps:

  1. Create a bookmark for each section of the document for which you want to create an index. (NOTE: Omit this step for an index for the entire document.) To create the bookmark:

        a. Select the entire section and then click Bookmark on the Edit menu.
    

        b. In the Bookmark Name text box, type a name for the bookmark, for
           example "section1" (without quotation marks), and then click Add.
    

        c. Repeat steps a and b for each section of the document.
    

  2. Mark the index entries. To do this, follow these steps:

        a. Select the text for which you want to create the index entry.
    

        b. On the Insert menu, click Index and Tables, and then click the Index
           tab.
    

        c. Click Mark Entry. The text you selected in step a appears
           in the Main Entry text box in the Mark Index Entry dialog box. If 
           you want to create a sublevel index entry, type the word or phrase 
           in the Subentry text box. To include a third sublevel, type the 
           subentry text in the Subentry box, followed by a colon, followed by 
           the word or phrase you want to use for the third-level entry. Choose 
           any other options you want.
    

        d. Click Mark All.
    

           Word examines each paragraph of your document, matching it to the
           text that you specified in the Main Entry and Subentry boxes, and
           inserts an XE field immediately following the first occurrence of
           that word in each paragraph.
    

        e. Click in the document and select the next word or phrase that you
           want to index.
    

           NOTE: This dialog box is "modeless" which means that while the
           dialog box is on the screen, you can click in the text area and
           continue editing.
    

        f. Return focus to the Mark Index Entry dialog box by clicking the
           dialog box, and then click Mark All.
    

        g. Repeat steps e and f for each word you want to index.
    

  3. Insert the Index Fields.

        a. Position the insertion point where you want the first index, and 
           then click Field on the Insert menu.
    

        b. In the Categories list box, select Index and Tables. In the Field
           Names list box, choose Index.
    

        c. Click Options.
    

        d. In the Switches list box, select the \b switch and then click
           Add to Field. The \b switch specifies an area of the document
           for which you created a bookmark. (See step 1.)
    

        e. In the Field Codes text box, position the insertion point after the
           \b and type the name of the bookmark you created in step 1. For
           example, if you created a bookmark for the first section called
           "Section1" (without quotation marks) the Field Codes text box should
           resemble the following:
    

              Index \b section1
    
        f. Repeat steps a through e for each of the remaining sections of the
           document.
    
       To add an index at the end of the document, position the insertion point
       where you want to build the index, click Index and Tables on the Insert
       menu, click the Index tab, and then click OK.
    
    
For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q125937
   TITLE     : How to Create a Table of Contents or an Index with Field 
               Codes


Additional query words: many several more 8.0 8.00
Keywords : kbfield macword ntword winword word7 word8 word95 word97 macword98 kbualink97
Version : WINDOWS:6.0,6.0a,6.0c,7.0,7.0a,97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.