For
Each
wks
In
ThisWorkbook.Worksheets
If
"EK"
= Mid(wks.Name, InStr(wks.Name,
" "
) + 1, 3)
Then
ActiveSheet.Move Before:=wks
Exit
For
End
If
Next
ActiveSheet.Name = Mid$(Datei2, InStr(Datei2,
"."
) - 5, 5) &
" "
& Mid$(Datei1, InStr(Datei1,
"."
) - 2, 2) &
" "
& Left(Datei1, 10)
Quellenarbeitsmappe.Close
Datei1 = Dir()