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?
Printable View
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?
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.