RecentFiles Property

Applies To

Application object, Global object.

Description

Returns a RecentFiles collection that represents the most recently accessed files. Read-only.

See Also

DisplayRecentFiles property, Maximum property.

Example

This example opens the first item in the RecentFiles collection (the first document name at the bottom of the File menu).

If RecentFiles.Count >= 1 Then RecentFiles(1).Open
This example displays the name of each file in the RecentFiles collection.

For Each rFile In RecentFiles
    MsgBox rFile.Name
Next rFile