MarkIndexEntry

Syntax

MarkIndexEntry [.MarkAll] [, .Entry = text] [, .Range = text] [, .Bold = number] [, .Italic = number] [, .CrossReference = text] [, .EntryAutoText = text] [, .CrossReferenceAutoText = text]

Remarks

Inserts an XE (Index Entry) field next to the text you select or next to every instance of the selected text. The arguments for the MarkIndexEntry statement correspond to the options in the Mark Index Entry dialog box (Index tab, Index And Tables command, Insert menu).

Argument

Explanation

.MarkAll

Inserts an XE field after each instance of the selected text.

.Entry

The text you want to appear in the index in the form MainEntry[:Subentry].

.Range

The name of a bookmark marking the range of pages you want to appear in the index. If you don't specify .Range, the number of the page containing the XE field appears in the index.


Argument

Explanation

.Bold

If 1, page numbers for the entry are bold in the index.

.Italic

If 1, page numbers for the entry are italic in the index.

.CrossReference

A cross-reference that will appear in the index.

.EntryAutoText

The name of an AutoText entry containing the text you want to appear in the index (.Entry is ignored).

.CrossReferenceAutoText

The name of an AutoText entry containing the text for a cross-reference (.CrossReference is ignored).


See Also

InsertIndex, MarkCitation, MarkTableOfContentsEntry