RecentFile object (Excel)

Represents a file in the list of recently used files.

Remarks

The RecentFile object is a member of the RecentFiles collection.

Example

Use RecentFiles (index), where index is the file number, to return a RecentFile object. The following example opens file two in the list of recently used files.

Application.RecentFiles(2).Open

Methods

Properties

See also

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.