Indexes.AutoMarkEntries Method

Word Developer Reference

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

Syntax

expression.AutoMarkEntries(ConcordanceFileName)

expression   Required. A variable that represents an Indexes collection.

Parameters

Name Required/Optional Data Type Description
ConcordanceFileName Required String The concordance file name that includes a list of items to be indexed.

Remarks

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.

Example

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

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

See Also