RecentFiles object (Excel)

Represents the list of recently used files.

Remarks

Each file is represented by a RecentFile object.

Example

Use the RecentFiles property of the Application object to return the RecentFiles collection.

The following example sets the maximum number of files in the list of recently used files.

Application.RecentFiles.Maximum = 6

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.