+ Reply to Thread
Results 1 to 2 of 2

Finding file names in a directory

  1. #1
    Forum Contributor
    Join Date
    09-02-2005
    Posts
    146

    Finding file names in a directory

    I have a known directory with an unknown number of files. How can I go about finding each file in the directory and then copying their name into the workbook?

    What I'm hoping to do is have a "template folder" then when the user brings up a userform, the userform will check what files are in the template folder and use those names to create an excel name to populate a combobox.

    *Bonus points* How do I search for only a type of file (such as .doc)?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Wilro85,

    It easy to do using the FSO (FileSystemObject).
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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