Sub
DateienAuflisten()
Dim
strVerzeichnis
As
String
Dim
strTyp
As
String
Dim
strDateiname
As
String
Dim
loZeile
As
Long
Dim
Datei
As
String
strTyp =
"*.zip"
Application.ScreenUpdating =
False
strVerzeichnis = "i:\DATEIPFAD\ÜBERORDNER\SPEZIELLER_UNTERORDER\"
strDateiname = Dir(strVerzeichnis & strTyp)
loZeile = 1
Datei = ActiveSheet.Range(
"F13"
)
With
ThisWorkbook.Worksheets(7)
Do
While
strDateiname <>
""
If
InStr(strDateiname, Datei) > 0
Then
.Cells(14, 1) = strDateiname
strDateiname = Dir
Loop
End
With
ActiveWorkbook.FollowHyperlink strVerzeichnis & ActiveSheet.Range(
"A14"
)
Application.ScreenUpdating =
True
MsgBox
"fertig"
Range(
"A14"
).
Select
Selection.ClearContents
End
Sub