With Application.FileSearch
.NewSearch
.LookIn = InputDrive & ":\" & InputDirectory & "\"
.SearchSubFolders = False
.Filename = "*" ' Alle Dateien
If .Execute() = 0 Then Exit Sub
End With
In der Variable InputDrive steht folgendes drin: C
If Dir$(InputDrive & ":\" & InputDirectory & "\*.*") = vbNullString Then Exit Sub
Gruß
With Application.FileSearch
.NewSearch
.LookIn = InputDrive & ":\" & InputDirectory & "\"
.SearchSubFolders = False
.Filename = "*" ' Alle Dateien
If .Execute() = 0 Then Exit Sub
End With
In der Variable InputDrive steht folgendes drin: C
If Dir$(InputDrive & ":\" & InputDirectory & "\*.*") = vbNullString Then Exit Sub
Gruß