A
avkokin
Hello. I use very simple macro (below), but I get error "Run-Time
error '5152'. Method 'Name' of object 'RecentFile" failed." Why? If I
use "On error resume next" the all correct, but it represented only 7
or 8 recent files but not 9. Strangely...
Sub rflist2()
Dim j As Long
Dim MyList As String
'On Error Resume Next
For j = 1 To Application.RecentFiles.Count
MyList = MyList & Application.RecentFiles(j) & vbCrLf
Next
MsgBox MyList
End Sub
Thank you
error '5152'. Method 'Name' of object 'RecentFile" failed." Why? If I
use "On error resume next" the all correct, but it represented only 7
or 8 recent files but not 9. Strangely...
Sub rflist2()
Dim j As Long
Dim MyList As String
'On Error Resume Next
For j = 1 To Application.RecentFiles.Count
MyList = MyList & Application.RecentFiles(j) & vbCrLf
Next
MsgBox MyList
End Sub
Thank you