Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Select a file out of a list of files


Using the filesearch object in the main file i'm wanting to be able to
select a single file from the list filesearch returns to copy its data
into the main file. Any suggestions?


--
Michael Wise
------------------------------------------------------------------------
Michael Wise's Profile: http://www.excelforum.com/member.php...fo&userid=6998
View this thread: http://www.excelforum.com/showthread...hreadid=537812

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Select a file out of a list of files

put up a userform with the results of the search in a combobox

with fs
.. . .
..Execute
for i = 1 to .foundfiles.count
userform1.combobox1.addItem .foundfiles(i)
Next
End With

Userform1.Show

then in the click event of the combobox

With userform1.Combobox1
fname = .list(listindex)
End With

workbooks.open fname

--
Regards,
Tom Ogilvy

"Michael Wise" wrote:


Using the filesearch object in the main file i'm wanting to be able to
select a single file from the list filesearch returns to copy its data
into the main file. Any suggestions?


--
Michael Wise
------------------------------------------------------------------------
Michael Wise's Profile: http://www.excelforum.com/member.php...fo&userid=6998
View this thread: http://www.excelforum.com/showthread...hreadid=537812


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 do I use a file list to recall data from listed files? Dave Excel Worksheet Functions 3 January 24th 07 08:27 PM
Using .FoundFiles to list files by path and file name Jon[_21_] Excel Programming 0 April 12th 06 04:45 AM
list related files, select which to open form Sami82[_5_] Excel Programming 0 September 14th 05 05:38 AM
GetOpenFilename restrict file list to "ord*.xls" i.e., only list ord*.xls files kevin_waite Excel Programming 7 July 31st 05 05:36 AM
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 12:26 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"