DeutchBose
Board Regular
- Joined
- Mar 22, 2004
- Messages
- 83
I'm using the following code (which I found in Ms Access Help) to find file names in a shared directory...
Set fs = Application.FileSearch
With fs
.LookIn = "L:\Organize\Reconciliation"
.FileName = "Comprehensive*.xls"
If .Execute > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
For i = 1 To .FoundFiles.Count
MsgBox .FoundFiles(i)
Next i
Else
MsgBox "There were no files found."
End If
Is there any way to take all the '.FoundFiles' and put them into a table?
i.e. something like this:
Title
Comprehensive1.xls
Comprehensive2.xls
Comprehensive3.xls
Thanks
Set fs = Application.FileSearch
With fs
.LookIn = "L:\Organize\Reconciliation"
.FileName = "Comprehensive*.xls"
If .Execute > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
For i = 1 To .FoundFiles.Count
MsgBox .FoundFiles(i)
Next i
Else
MsgBox "There were no files found."
End If
Is there any way to take all the '.FoundFiles' and put them into a table?
i.e. something like this:
Title
Comprehensive1.xls
Comprehensive2.xls
Comprehensive3.xls
Thanks