Indexes.AutoMarkEntries method (Word)

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.

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

See also

Indexes Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.