AutoMarkEntries Method

Microsoft Word Visual Basic

AutoMarkEntries Method

       

Automatically adds XE (Index Entry) fields to the specified document, using the entries from a concordance file.

Note   A concordance file is a Word document that contains a two-column table, with terms to index in the first column and index entries in the second column.

expression.AutoMarkEntries(ConcordanceFileName)

expression   Required. An expression that returns an Indexes object.

ConcordanceFileName   Required String. The concordance file name that includes a list of items to be indexed.

Example

This example adds index entries to Thesis.doc based on the entries in C:\Documents\List.doc.

Documents("Thesis.doc").Indexes.AutoMarkEntries _
    ConcordanceFileName:="C:\Documents\List.doc"