
Tips.Net > WordTips Home > Files > MRU List > Grabbing the MRU List
Summary: The “MRU” is the most-recently used file list that appears at the bottom of the File menu. Your macros can access the file names on this list by using the techniques described in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
Word 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 files opened and edited within Word. You can see the MRU list by looking at the bottom of the File menu. If you want to grab the names of the MRU files and insert those names in a document, you can use the following VBA macro:
Sub MostRecent()
Dim J As Integer
For J = 1 To RecentFiles.Count
Selection.TypeText Text:=RecentFiles(J).Name
Selection.TypeParagraph
Next J
End Sub
Tip #1457 applies to Microsoft Word versions: 97 2000 2002 2003
Create and Merge! Using Word's mail merge tool you can quickly and easily combine data from a variety of data sources to create great individualized documents that incorporate your data in ways that you control. WordTips: Mail Merge Magic is an invaluable source for learning how to harness the full power of Word's mail merging capabilities.
Check out WordTips: Mail Merge Magic today!
If you provide support and help to others, you need the power offered in the WordTips Ten-Year Library. There is no better information repository anywhere! (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips