Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default how do I remove an item from the recently used files list

I cannot find a way to remove one file from the list of recently used files

It's indexed, so you start from the bottom up...

Sub TestIt()
MRU_FileRemove ("Book1.xlsm")
End Sub

Sub MRU_FileRemove(filename As String)
Dim j As Long
Dim s As String

With Application
If .RecentFiles.Maximum = 0 Then Exit Sub
For j = .RecentFiles.Count To 1 Step -1
s = Dir(.RecentFiles.Item(j).Path)
If StrComp(s, filename, vbTextCompare) = 0 Then
.RecentFiles.Item(j).Delete
Exit Sub
End If
Next j
End With
End Sub

- -
HTH :)
Dana DeLouis


"Sandy MCP" wrote in message
...
I cannot find a way to remove one file from the list of recently used files
drop down in office. Is there a way? This is Office 2007, excel and word.
Thanks
--
SkM MCP


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
Remove an item from a list [email protected] Excel Discussion (Misc queries) 3 October 20th 06 03:54 PM
Cannot open files in Most Recently Used List Suzan Excel Discussion (Misc queries) 3 July 29th 06 11:32 PM
Recently Used Files List pkeenan Excel Discussion (Misc queries) 5 June 1st 06 02:47 PM
Recently used files Nabs Excel Worksheet Functions 5 December 4th 05 06:34 PM
Recently Used File List - 2002 Contains 'Temp' Files Keith972002 Excel Discussion (Misc queries) 0 July 26th 05 01:46 PM


All times are GMT +1. The time now is 04:29 PM.

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

About Us

"It's about Microsoft Excel"