Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default How to remove listed shortcuts for deleted Excel files?

I use XP Pro, and Office 2007.

In Excel, there are several deleted Excel files. These file shortcuts
persist on my "quick access" file list on opening Excel. Is there a "quick &
easy" way to remove these shortcuts?

Thanks!

-- Dave





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 533
Default How to remove listed shortcuts for deleted Excel files?

Open NotePad and paste this script in. Save it to your desktop with a VBS
extension like UpdateXL12MRU.VBS

Close Notepad and then double-click the file.


Rem Removes nonexistent files from XL12's MRU list

dim wsh, fso, Res, Counter, Ptr, FName, delCount
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
delCount = delCount + 1
wsh.RegDelete "HKCU\Software\Microsoft\Office\12.0\Excel\Fil e MRU\Item "
& Counter
end if
end if
next
if delCount = "" then
Msgbox "No file names removed from MRU list"
else
Msgbox delCount & " file name(s) removed from MRU list"
end if

--
Jim
"Dave" wrote in message
...
I use XP Pro, and Office 2007.

In Excel, there are several deleted Excel files. These file shortcuts
persist on my "quick access" file list on opening Excel. Is there a
"quick &
easy" way to remove these shortcuts?

Thanks!

-- Dave







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
How do retrieve deleted files from excel? Tracey Excel Worksheet Functions 1 July 9th 08 09:36 PM
all my shortcuts to excel files open up as a picture Gimbee Excel Discussion (Misc queries) 0 April 13th 08 12:39 AM
How to exctract files listed in an Excel-file from a folder? skiern Excel Discussion (Misc queries) 2 May 6th 06 04:41 PM
How do I remove items listed in a pivot table drop down list box Hart165Hour Excel Discussion (Misc queries) 3 March 16th 05 04:19 AM
How to disable the shortcuts of excel files created by MSExcel 20. Nikhil Excel Discussion (Misc queries) 1 February 19th 05 12:40 PM


All times are GMT +1. The time now is 10:45 PM.

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"