Application.RecentFiles Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .RecentFiles

expression A variable that represents an Application object.

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

Application.RecentFiles.Maximum = 6