ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Add Item to Recenly-Open Files (https://www.excelbanter.com/excel-programming/405014-add-item-recenly-open-files.html)

MikeH2

Add Item to Recenly-Open Files
 
I often use VBA to open files that stay in memory. I'd like to update the
recent-files list sometimes when I do this. How is that possible?

Dave Peterson

Add Item to Recenly-Open Files
 
There's a parm you can specify in the workbooks.open command:

Dim w As Workbook
Set w = Workbooks.Open(Filename:="c:\something.xls", addtomru:=True)


MikeH2 wrote:

I often use VBA to open files that stay in memory. I'd like to update the
recent-files list sometimes when I do this. How is that possible?


--

Dave Peterson

Jim Cone

Add Item to Recenly-Open Files
 

This post has code I use on my own system.
It also removes items from the recent files list that no longer exist...
http://tinyurl.com/2eumzt

and this has helpful posting tips...
http://www.cpearson.com/excel/newposte.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"MikeH2"
wrote in message
I often use VBA to open files that stay in memory. I'd like to update the
recent-files list sometimes when I do this. How is that possible?


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com