Import file names

S

S.G.Pillai

I am having nearly 5000 files in a folder and is it possible for me to just
import the file names in to excel format from the particular folder.
any help appreciated
thanks in advance
 
S

S.G.Pillai

Thanks,
But the problem is that I am not much aware of programing.So will you be
able to help me by giving me step by step instruction how to do this. I the
routine for the same but i am not sure how to run this. Pls guide me .
thanks
 
D

Dave Peterson

Since you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Alternately...

Get to a command prompt
type:
dir "c:\my documents\excel" > c:\list.txt

Change the folder to the one you want.

Now back to excel and do:
File|open
point to c:\list.txt
and you'll be able to parse the input file the way you want.
 
G

Gord Dibben

Several methods to accomplish this.......I like Tushar's best.

To add a "Print Directory" feature to Explorer, go to
this KB Article.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;q272623&

Or you can download Printfolder 1.2 from.....

http://no-nonsense-software.com/freeware/

I use PF 1.2 and find it to be more than adequate with custom features.

OR Go to DOS(Command) prompt and directory.
Type DIR >MYFILES.TXT

All the above create a *.TXT file which can be opened in Notepad or Excel.

One more method if you want to by-pass the *.TXT file and pull directly to
Excel is to use Tushar Mehta's Excel Add-in. This allows filtering and
sorting once you have the data in Excel.

http://www.tushar-mehta.com/ scroll down to Add-ins>Directory Listing.

Download the ZIP file and un-zip to your Office\Library folder.


Gord Dibben Excel MVP
 
Top