RecentFiles Property
RecentFiles Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns a RecentFiles collection that represents the most recently accessed files.
expression.RecentFiles
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example opens the first item in the RecentFiles collection (the first document name listed on 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