0 Agios
Well-known Member
- Joined
- Feb 22, 2004
- Messages
- 570
- Office Version
- 365
I have this code thats made to populate a list box with Excel files, what i need is to populate the list box with regular yellow file folders. What do i need to change "*.xls" to ?
Dim I As Long
With Application.FileSearch
.NewSearch
.LookIn = "\\BRYANTSERVER\Documents\Estimating\RCO Tracker folders"
.FileType = msoFileTypeAllFiles
.filename = "*.xls"
.Execute
For I = 1 To .FoundFiles.Count
ListBox2.AddItem .FoundFiles(I)
Next I
End With
Dim I As Long
With Application.FileSearch
.NewSearch
.LookIn = "\\BRYANTSERVER\Documents\Estimating\RCO Tracker folders"
.FileType = msoFileTypeAllFiles
.filename = "*.xls"
.Execute
For I = 1 To .FoundFiles.Count
ListBox2.AddItem .FoundFiles(I)
Next I
End With