Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Open files with String prefix

Hi All......

Present problem is, how can I open all the files in the default directory
that have a specific string as the prefix (ie: abcdefg) so that I may
extract data from them? I do not know how many files there will be, and
the directory will have other files in it that I do not wish to open.

Any guidance would be much appreciated,
Vaya con Dios,
Chuck, CABGx3




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Open files with String prefix

Hi Chuck

I have a filter option for file names and sheets in this add-in
http://www.rondebruin.nl/merge.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message ...
Hi All......

Present problem is, how can I open all the files in the default directory
that have a specific string as the prefix (ie: abcdefg) so that I may
extract data from them? I do not know how many files there will be, and
the directory will have other files in it that I do not wish to open.

Any guidance would be much appreciated,
Vaya con Dios,
Chuck, CABGx3




  #3   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Open files with String prefix

Thanks Ron.........it looks really terrific, but I can't use an add-in in
this case. I just need a little code to step through the default directory
and open the files I want.......sans that, then to step through a special
directory and open all the files, one at a time.

Vaya con Dios,
Chuck, CABGx3



"Ron de Bruin" wrote in message
...
Hi Chuck

I have a filter option for file names and sheets in this add-in
http://www.rondebruin.nl/merge.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message
...
Hi All......

Present problem is, how can I open all the files in the default directory
that have a specific string as the prefix (ie: abcdefg) so that I may
extract data from them? I do not know how many files there will be, and
the directory will have other files in it that I do not wish to open.

Any guidance would be much appreciated,
Vaya con Dios,
Chuck, CABGx3




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Open files with String prefix

Hi clr

I am ver busy this week
I try to past a code example at the end of the week or in the weekend

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message ...
Thanks Ron.........it looks really terrific, but I can't use an add-in in
this case. I just need a little code to step through the default directory
and open the files I want.......sans that, then to step through a special
directory and open all the files, one at a time.

Vaya con Dios,
Chuck, CABGx3



"Ron de Bruin" wrote in message
...
Hi Chuck

I have a filter option for file names and sheets in this add-in
http://www.rondebruin.nl/merge.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message
...
Hi All......

Present problem is, how can I open all the files in the default directory
that have a specific string as the prefix (ie: abcdefg) so that I may
extract data from them? I do not know how many files there will be, and
the directory will have other files in it that I do not wish to open.

Any guidance would be much appreciated,
Vaya con Dios,
Chuck, CABGx3




  #5   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Open files with String prefix

Thanks Ron........that will be appreciated

Vaya con Dios,
Chuck, CABGx3


"Ron de Bruin" wrote in message
...
Hi clr

I am ver busy this week
I try to past a code example at the end of the week or in the weekend

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message
...
Thanks Ron.........it looks really terrific, but I can't use an add-in in
this case. I just need a little code to step through the default
directory and open the files I want.......sans that, then to step through
a special directory and open all the files, one at a time.

Vaya con Dios,
Chuck, CABGx3



"Ron de Bruin" wrote in message
...
Hi Chuck

I have a filter option for file names and sheets in this add-in
http://www.rondebruin.nl/merge.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message
...
Hi All......

Present problem is, how can I open all the files in the default
directory that have a specific string as the prefix (ie: abcdefg) so
that I may extract data from them? I do not know how many files there
will be, and the directory will have other files in it that I do not
wish to open.

Any guidance would be much appreciated,
Vaya con Dios,
Chuck, CABGx3








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Open files with String prefix

Hi Chuck

Start here
http://www.rondebruin.nl/copy3.htm

And use this to use the files that start with "week"
FilesInPath = Dir(MyPath & "week*.xl*")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message ...
Thanks Ron........that will be appreciated

Vaya con Dios,
Chuck, CABGx3


"Ron de Bruin" wrote in message
...
Hi clr

I am ver busy this week
I try to past a code example at the end of the week or in the weekend

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message
...
Thanks Ron.........it looks really terrific, but I can't use an add-in in
this case. I just need a little code to step through the default
directory and open the files I want.......sans that, then to step through
a special directory and open all the files, one at a time.

Vaya con Dios,
Chuck, CABGx3



"Ron de Bruin" wrote in message
...
Hi Chuck

I have a filter option for file names and sheets in this add-in
http://www.rondebruin.nl/merge.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"clr" wrote in message
...
Hi All......

Present problem is, how can I open all the files in the default
directory that have a specific string as the prefix (ie: abcdefg) so
that I may extract data from them? I do not know how many files there
will be, and the directory will have other files in it that I do not
wish to open.

Any guidance would be much appreciated,
Vaya con Dios,
Chuck, CABGx3






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
Open Text Files/Format/Save as .xls for multiple files. Ray Excel Programming 9 June 9th 09 04:23 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
HOW TO GET OVER WITH THIS ANNOYING LINKED FILES MSG BOX WHEN I OPEN FILES WHICH HAS LINKS CAPTGNVR Excel Programming 4 February 8th 07 07:13 PM
Macro to open *.dat files and save as .txt (comma delimited text files) [email protected] Excel Programming 2 November 30th 05 05:50 AM
file open via IE hyperlink causes already open files to shrink and tile Marc Setting up and Configuration of Excel 0 May 4th 05 08:13 PM


All times are GMT +1. The time now is 12:04 AM.

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"