Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Can VBA be used to clear the recently used file list?

Is is possible using VBA in Excel to clear ALL items in the recently used
file list?
I'm talking about the recently used files when you click "Start" then
"Documents".
If this is possible, could someone please post the code to do this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Can VBA be used to clear the recently used file list?

HiQuartz,

If you want to hide the Excel recent file list display, try:

Sub Tester()
Application.DisplayRecentFiles = False
End Sub

If you want to clear and re-initialise the list, try:

Sub Tester02()
With Application
.DisplayRecentFiles = False
.DisplayRecentFiles = True
.RecentFiles.Maximum = 3 '<<==== CHANGE TO SUIT
End With
End Sub

Note that neither of the subs erases the windows recent file list, only
Excel's ability to report the list.

---
Regards,
Norman



"quartz" wrote in message
...
Is is possible using VBA in Excel to clear ALL items in the recently used
file list?
I'm talking about the recently used files when you click "Start" then
"Documents".
If this is possible, could someone please post the code to do this?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default Can VBA be used to clear the recently used file list?

Hi quartz,
You can use:
Kill CreateObject("WScript.Shell").SpecialFolders("Rece nt") & "\*.*"

Regards,
MP

"quartz" a écrit dans le message de
...
Is is possible using VBA in Excel to clear ALL items in the recently used
file list?
I'm talking about the recently used files when you click "Start" then
"Documents".
If this is possible, could someone please post the code to do this?

Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Can VBA be used to clear the recently used file list?

Thanks so much!!!

"Michel Pierron" wrote:

Hi quartz,
You can use:
Kill CreateObject("WScript.Shell").SpecialFolders("Rece nt") & "\*.*"

Regards,
MP

"quartz" a écrit dans le message de
...
Is is possible using VBA in Excel to clear ALL items in the recently used
file list?
I'm talking about the recently used files when you click "Start" then
"Documents".
If this is possible, could someone please post the code to do this?

Thanks.



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
Recently used file list tgi Excel Discussion (Misc queries) 2 October 1st 09 02:38 PM
Clear recently used file list Will Fleenor Excel Worksheet Functions 1 August 24th 09 04:20 PM
Recently Used File List Greg P Excel Discussion (Misc queries) 1 July 11th 07 10:24 PM
recently used file list Shari Excel Discussion (Misc queries) 11 October 19th 06 08:52 PM
Most Recently Used File list altira Excel Programming 1 February 29th 04 12:33 PM


All times are GMT +1. The time now is 02:46 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"