Item Property (RecentFiles Collection)

Applies To

RecentFiles collection object.

Description

Returns a single RecentFile object from a RecentFiles collection.

Syntax

expression.Item(Index)

expression Required. An expression that returns a RecentFiles object.

Index Required Long. The index number of the file.

Example

This example opens file two in the list of recently used files.

Application.RecentFiles.Item(2).Open