MarkEntry Method

See Also         Example         Applies To

Syntax 1: Inserts an XE (Index Entry) field after the specified range. The XE field is returned as a Field object.

Syntax 2: Inserts a TC (Table of Contents Entry) field after the specified range. The TC field is returned as a Field object.

Syntax 1

expression.MarkEntry(Range, Entry, EntryAutoText, CrossReference, CrossReferenceAutoText, BookmarkName, Bold, Italic)

Syntax 2

expression.MarkEntry(Range, Entry, EntryAutoText, TableID, Level)

expression   Syntax 1: Required. An expression that returns an Indexes object.

Syntax 2: Required. An expression that returns a TablesOfContents or TablesOfFigures object.

Range   Required Range object. The location of the entry. The XE or TC field is inserted after Range.

Entry   Optional Variant. The text that appears in the index, table of contents, or table of figures. To indicate a subentry, include the main entry text and the subentry text, separated by a colon (:) (for example, "Introduction: The Product").

EntryAutoText   Optional Variant. The AutoText entry name that includes text for the index, table of figures, or table of contents (Entry is ignored).

CrossReference   Optional Variant. A cross-reference that will appear in the index (for example, "See Apples").

CrossReferenceAutoText   Optional Variant. The AutoText entry name that contains the text for a cross-reference (CrossReference is ignored).

BookmarkName   Optional Variant. The name of the bookmark that marks the range of pages you want to appear in the index. If this argument is omitted, the number of the page containing the XE field appears in the index.

Bold   Optional Variant. True to add bold formatting to the entry page numbers in the index.

Italic   Optional Variant. True to add italic formatting to the entry page numbers in the index.

TableID   Optional Variant. A one-letter identifier for the table of figures or table of contents item (for example, "i" for an "illustration").

Level   Optional Variant. A level for the entry in the table of contents or table of figures.