FileLoadLast Method
Opens one of the last nine most recently used files.
Syntax
expression**.FileLoadLast(Number)**
*expression * Optional. An expression that returns an Application object.
Number Optional Integer. A number from 1 to 9 that specifies which of the nine most recently used files to open.
Example
The following example opens the nine most recently used files. It assumes the Recently Used File List option has been selected.
Sub OpenThe9MRUFiles()
Dim I As Integer ' Index used in For...Next loop
For I = 1 To 9
FileLoadLast I
' Ignores errors that may be due to missing files.
On Error Resume Next
Next I
End Sub
Applies to | Application Object
See Also | FileBuildID Method | FileFormatID Method | FileOpen Method | FileSaveAs Method | MacroSecurity Method