List recent documents on Word screen

G

Guest

Using Microsoft Word 2002, and I am wondering if there is a way to list
recent Word documents on the screen (like is done in EXCEL) without having to
go to the "File" menu pulldown.
 
C

Cindy M.

Hi =?Utf-8?B?VGVjaHNhc0Rhd2c=?=,
Using Microsoft Word 2002, and I am wondering if there is a way to list
recent Word documents on the screen (like is done in EXCEL) without having to
go to the "File" menu pulldown.
I'm not familiar with this particular feature in Excel, but no: there is no way
built into Word to "print" the list of recently used documents in the Word
document. It's possible to use a macro to "walk" the entries in the File menu.
The following bit of code works for me

Sub ListMRU()
Dim MRUEnd As Long
Dim MRUcounter As Long
Dim commandText As String
Dim cb As Office.CommandBar

Set cb = CommandBars("Menu Bar").Controls("File").CommandBar
MRUEnd = cb.Controls.Count - 2

For MRUcounter = MRUEnd To MRUEnd - 8 Step -1
commandText = (cb.Controls(MRUcounter).Caption & vbCr)
If Left(commandText, 1) = "&" And IsNumeric(Mid(commandText, 2, 1)) Then
Selection.TypeText commandText
End If
Next
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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