GetCrossReferenceItems Method

See Also         Example         Applies To

Returns an array of items that can be cross-referenced based on the specified cross-reference type. The array corresponds to the items listed in the For which box in the Cross-reference dialog box (Insert menu).

Note   An item returned by this method can be used as the ReferenceWhich argument for the InsertCrossReference method.

Syntax

expression.GetCrossReferenceItems(ReferenceType)

expression   Required. An expression that returns a Document object.

ReferenceType   Required Variant. The type of item you want to insert a cross-reference to. Can be one of the following WdReferenceType constants: wdRefTypeBookmark, wdRefTypeEndnote, wdRefTypeFootnote, wdRefTypeHeading, or wdRefTypeNumberedItem.