Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Add file to Recent File List

This is how to add the current file to the Recent File List in Word:

Sub AddCurrentFileToMRU()
RecentFiles.Add Document:=ActiveDocument.FullName
End Sub

I can't figure out how to do it in Excel. Any ideas?


TIA,

Andy



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Add file to Recent File List

Use the Add method for the RecentFiles Collection Object
From VBE help example :

Application.RecentFiles.Add Name:="Oscar.xls"

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

This is how to add the current file to the Recent File List in Word:

Sub AddCurrentFileToMRU()
RecentFiles.Add Document:=ActiveDocument.FullName
End Sub

I can't figure out how to do it in Excel. Any ideas?


TIA,

Andy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Add file to Recent File List


Hadn't been able to find anything in Help that had
"Application.RecentFiles" and "Add", which is why I came here <g.

So I ended up with

Application.RecentFiles.Add Name:=ActiveWorkbook.FullName

Which worked fine.

Thanks Paul


Andy


Use the Add method for the RecentFiles Collection Object
From VBE help example :

Application.RecentFiles.Add Name:="Oscar.xls"

HTH
Paul
----------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make

changes.
----------------------------------------------------------------
This is how to add the current file to the Recent File List in

Word: Sub AddCurrentFileToMRU() RecentFiles.Add
Document:=ActiveDocument.FullName End Sub I can't figure out
how to do it in Excel. Any ideas? TIA, Andy



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 to delete Excel 2007 file from list under Recent Documents GPS Excel Discussion (Misc queries) 5 May 9th 23 11:47 AM
Recent File List Empty MrsBear87 Excel Discussion (Misc queries) 0 April 24th 09 02:18 PM
how do i delete a file from recent documents file in excel exile New Users to Excel 1 March 7th 09 01:59 AM
Recent File List Check Box Greyed out Bruce Wilson Excel Discussion (Misc queries) 7 February 22nd 07 03:15 PM
~Recent File~ andibevan Excel Worksheet Functions 2 November 19th 04 08:52 PM


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