+ Reply to Thread
Results 1 to 5 of 5

List All Files In Folder

  1. #1
    Registered User
    Join Date
    08-23-2005
    Posts
    53

    List All Files In Folder

    Evening,
    I have a folder C:\My Documents that contains excel & Pdf files.
    Is it possible to list all the files by name contained in this folder in a excel spreadsheet i.e one filename one cell?

    RIk
    Last edited by Rikuk; 05-07-2009 at 05:03 PM.

  2. #2
    Registered User
    Join Date
    05-07-2009
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: List All Files In Folder

    As far as an automatic updating spread sheet, I dont know how to do that but, I can get a txt file so you can import to excel

    Start--Run
    CMD--enter

    you should get dos

    navigate to the location you want using cd commands
    http://www.computerhope.com/cdhlp.htm

    Then type "dir /b>filelist.txt"

    This will create a txt file named "filelist" in the folder you navigated too.

    You then can import and edit to your delight!

    Hope this helped!

    found a wiki with more info also!
    http://wiki.bugwood.org/BugwoodIDS:I...mes_into_Excel

  3. #3
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: List All Files In Folder

    hi Rik,

    Below is another aproach (run the "ListFilesAndFolders" macro) which will put the info in a new sheet (I think it is completely functional in Excl 2003 & above). I've left the notes about where I found the original code & here's a google which brings up lots of answers:

    http://www.google.co.uk/search?q=%22...xcel+sub&meta=
    including Richard Schollar's suggestion in:
    http://www.ozgrid.com/forum/showthread.php?t=65530
    or
    http://www.dbforums.com/microsoft-ex...es-folder.html
    Please Login or Register  to view this content.
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: List All Files In Folder

    Maybe this
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-23-2005
    Posts
    53

    Re: List All Files In Folder

    Thank you all for your help

    Rik

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1