|
|
|
|
|
|
Word
|
Clear Most Recent Used File List
|
|
Ease of Use
|
Easy
|
Version tested with
|
2000, 2002, 2003
|
Submitted by:
|
MOS MASTER
|
Description:
|
This sub clears the recent used file list from the File menu.
|
Discussion:
|
Depending on your settings in Word the recent file list can grow pretty big. Sometimes you just want to clear all the entries to start over fresh. This sub helps you.
|
Code:
|
instructions for use
|
Option Explicit
Sub ClearMRU()
Dim oRecentFile As Word.RecentFile
For Each oRecentFile In Application.RecentFiles
oRecentFile.Delete
Next
End Sub
|
How to use:
|
- Open your Word document.
- Press Alt + F11 to open VBE.
- Insert-Module. (Insert -> module)
- Paste the code in the right (code) pane. (Ctrl + V)
- Close VBE (Alt + Q or press the X in the top right hand corner).
- Save the file.
|
Test the code:
|
- Go to the File menu over there you see the list of files you've recently opened.
- From Word, press Alt + F8 to open the macro dialog box.
- Select ClearMRU
- Click Run.
- Go to the File menu. The list is cleared.
|
Sample File:
|
Clear MRU.zip 4.61KB
|
Approved by mdmackillop
|
This entry has been viewed 70 times.
|
|