harolda1980
Gebruiker
- Lid geworden
- 7 aug 2007
- Berichten
- 488
Kan iemand zeggen waarom de gevonden bestanden niet in mijn textbox verschijnen.
Private Sub Cmdload_Click()
Sheets("gef").Select
Range("rloc").Select
Lookinloc = ActiveCell
With Application.FileSearch.SearchFolders
.NewSearch
.LookIn = Lookinloc 'HIER VERANDEREN
.SearchSubFolders = False
.FileType = msoFileTypeAllFiles
.Filename = ".XLS" 'HIER VERANDEREN
.LastModified = msoLastModifiedAnyTime
If .Execute > 0 Then
For lCount = 1 To FoundFiles.Count
'HIER GAAT HET MIS. met add item
LB1file.AddItem .FoundFiles[lCount]
Next lCount
End If
End With
End Sub
Private Sub Cmdload_Click()
Sheets("gef").Select
Range("rloc").Select
Lookinloc = ActiveCell
With Application.FileSearch.SearchFolders
.NewSearch
.LookIn = Lookinloc 'HIER VERANDEREN
.SearchSubFolders = False
.FileType = msoFileTypeAllFiles
.Filename = ".XLS" 'HIER VERANDEREN
.LastModified = msoLastModifiedAnyTime
If .Execute > 0 Then
For lCount = 1 To FoundFiles.Count
'HIER GAAT HET MIS. met add item
LB1file.AddItem .FoundFiles[lCount]
Next lCount
End If
End With
End Sub