05.11.2016, 23:07
Hallo,
teste mit folgendem Code:
mfg
teste mit folgendem Code:
Code:
Sub Test()
Dim WS As Worksheet
Set WS = Worksheets("am Tag")
WS.Range("A4:E100").Clear
'Ankunft & Abflug
s = 1
For Each A In Array("Ankunft", "Abflug")
r = 4
z = Application.Match(WS.Cells(1, 2), Sheets(A).Range("B21:B200"), 0) + 20
For i = 5 To 65
If Sheets(A).Cells(z, i) <> "" Then
WS.Cells(r, s) = Sheets(A).Cells(5, i)
WS.Cells(r, s + 1) = Sheets(A).Cells(z, i)
WS.Cells(r, s + 1).NumberFormat = "hh:mm"
r = r + 1
End If
Next i
s = 4
Next A
End Sub
mfg