RecentFiles Property

Microsoft Excel Visual Basic

Returns a RecentFiles collection that represents the list of recently used files.

For information about returning a single object from a collection, see Returning an Object from a Collection.

Example

This example sets the maximum number of files in the list of recently used files to 6.

Application.RecentFiles.Maximum = 6