Copy History (recently opened) to Cells

  • Thread starter Gary''s Student
  • Start date
G

Gary''s Student

If I pull-down File from the menu bar, I can select from a short list of
recently opened workbooks to open.

The list represents a kind of history of recent usage of Excel. How can I
copy this list to a column in the worksheet?

For example, this list might show:

C:\test\shell.xls
C:\Temp\todo.xls

I would like A1 to contain the text:
C:\test\shell.xls

A2 to contain the text:
C:\Temp\todo.xls

etc.

Thanks in advance for any suggestions
 
J

Joel

Sub GetRecentfiles()

For i = 1 To Application.RecentFiles.Count
MsgBox (Application.RecentFiles.Item(i).Name)

Next i
End Sub
 
G

Gary''''s Student

Thanks!
--
Gary''''s Student - gsnu200803


Joel said:
Sub GetRecentfiles()

For i = 1 To Application.RecentFiles.Count
MsgBox (Application.RecentFiles.Item(i).Name)

Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top