Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Grabbing the MRU List.
by Allen Wyatt
(last updated June 4, 2020)
Excel allows you to maintain a list of the most-recently used (MRU) files. This list can record the names of up to the last nine workbooks opened and edited within Excel. Understand that nine workbooks is the default; the user can actually change the number of workbooks that can be maintained in the list. See the tip MRU Files Won't Display for more information.
If you want to grab the names of the MRU files and insert those names in a worksheet, you can use the following macro:
Sub MostRecent() Dim J As Integer For J = 1 To Application.RecentFiles.Count Cells(J, 1) = Application.RecentFiles(J).Name Next J End Sub
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9783) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Grabbing the MRU List.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Delimited files are often created through Excel so that your data can be exported to other programs. If the delimited ...Discover More
Need to get your data into a format that can be easily read by other programs? Chances are good that a simple CSV file ...Discover More
Imagine how painful it would be if every time you started Excel it tried to load all the files in your root directory? ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.