Results 1 to 2 of 2

Thread: Files and Folders

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Posts
    4

    Post

    I want my program to allow the user to select a folder.

    Then I want the program to find all files in that folder and load the filenames into an array as strings.

    Does anyone know how I would do this?

  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455

    Post

    Hello Fav,

    Answer to your question:

    Private Sub Form_Load()
    Dim Arr(100) As String
    Dim N As Integer 'maybe Single (if not more as 255 files)

    For N = 0 To File1.ListCount - 1
    Arr(N) = File1.List(N)
    Next N

    End Sub

    Succes,

    michelle.

Posting Permissions

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



Click Here to Expand Forum to Full Width