Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

History in xls after opening a file via VBE 1

Status
Not open for further replies.

Matsul

IS-IT--Management
May 6, 2002
140
BE
I am running

filetoopen = Application _
.GetOpenFilename("Xls Files (*.xls), *.xls")

Workbooks.OpenText Filename:=filetoopen


After the macro is run I would like to have the file in the 'Recently used file list' but this is not the case.

Any idea what must be changed ?
 
Use the Add method of the RecentFiles collection from the application object, using your variable as the 'RecentFile'

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top