bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Files > MRU List > Grabbing the 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!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

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

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)