Add file to Recent File List

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

This is how to add the current file to the Recent File List in Word:

Sub AddCurrentFileToMRU()
RecentFiles.Add Document:=ActiveDocument.FullName
End Sub

I can't figure out how to do it in Excel. Any ideas?


TIA,

Andy
 
Use the Add method for the RecentFiles Collection Object
From VBE help example :

Application.RecentFiles.Add Name:="Oscar.xls"

HTH
Paul
 
Hadn't been able to find anything in Help that had
"Application.RecentFiles" and "Add", which is why I came here <g>.

So I ended up with

Application.RecentFiles.Add Name:=ActiveWorkbook.FullName

Which worked fine.

Thanks Paul


Andy

Use the Add method for the RecentFiles Collection Object
From VBE help example :

Application.RecentFiles.Add Name:="Oscar.xls"

HTH
Paul
Word: >> >> Sub AddCurrentFileToMRU() >> RecentFiles.Add
Document:=ActiveDocument.FullName >> End Sub >> >>I can't figure out
how to do it in Excel. Any ideas? >> >> >>TIA, >> >>Andy >> >>
 

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

Back
Top