Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim Jim is offline
external usenet poster
 
Posts: 615
Default How do I clear the "recent documents" list?

I just installed Office 2007. Word and Excel can't seem to find the recent
documents even though the files are listed. How can I clear the recent
documents list? Thanks!
--
jim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default How do I clear the "recent documents" list?

Excel does not check whether a file still exists when it builds the MRU
list. This is a macro I put in my Personal.xls and I run it automatically
every time Excel starts.

''Removes nonexistent files from XL12's MRU list
Sub CleanupMRU()
Dim wsh As Object, fso As Object
Dim Res As String, Counter As Integer
Dim Ptr As Integer, FName As String
On Error Resume Next
Set wsh = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
For Counter = 1 To 50
Res = wsh.RegRead("HKCU\Software\Microsoft\Office\12.0\E xcel\File
MRU\Item " & Counter)
Ptr = InStr(1, Res, "*", 1)
If Ptr 0 Then
FName = Mid(Res, Ptr + 1)
If Not fso.FileExists(FName) Then
wsh.RegDelete "HKCU\Software\Microsoft\Office\12.0\Excel\Fil e
MRU\Item " & Counter
End If
End If
Next
End Sub

--
Jim

"Jim" wrote in message
...
|I just installed Office 2007. Word and Excel can't seem to find the recent
| documents even though the files are listed. How can I clear the recent
| documents list? Thanks!
| --
| jim


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 149
Default How do I clear the "recent documents" list?

For a non-code solution, try: ToolsOptionsGeneral and turn MRU off (or set
to zero) & then reverse the process to turn in on again. At that point your
MRU list should be empty but it will start rebuilding from that point
forward.

HTH,


"Jim" wrote in message
...
I just installed Office 2007. Word and Excel can't seem to find the recent
documents even though the files are listed. How can I clear the recent
documents list? Thanks!
--
jim



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot use "Create List" and "Share Workbook" same time Devendra Excel Discussion (Misc queries) 0 October 26th 06 06:05 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Clear"Reset" data input. Frick Excel Worksheet Functions 1 March 10th 06 11:40 PM
Adding a "CLEAR" button to the worksheet Billy Excel Discussion (Misc queries) 1 January 8th 06 06:09 PM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"