Macro to import multiple text files


Posted by Chuck Harkes on September 13, 2000 11:19 AM

I have 100 text files in a directory on my hard drive. I am looking for help constructing a macro that will:

1) Import all 100 files without having to do them individually.

2) Ideally the macro will import each file into it's own sheet in the same workbook and then will save the workbook in excel format. So my vision is that as each file is imported the macro will create and name a sheet.

I've tried this on my own but I'm a bit of a neophyte when it comes to programming. Would appreciate any help! Thanks.



Posted by Ivan Moala on September 14, 0100 3:01 AM


I have done something along this line earlier
Have a look @ 3748.html

If you require help adapting then post.


Ivan