Sub NakopirujDoListu()
Dim radek As Byte
Dim radeklist As Integer
For radek = 9 To 15
If Cells(radek, "B") = "Jízda" Then
radeklist = Sheets("Databáze").Cells(Rows.Count, 2).End(xlUp).Row + 1
Sheets("Databáze").Range("B" & radeklist & ":D" & radeklist).Value _
= Range("B" & radek & ":D" & radek).Value
ElseIf Cells(radek, "B") = "Přestávka " Then
radeklist = Sheets("Databáze").Cells(Rows.Count, 6).End(xlUp).Row + 1
Sheets("Databáze").Range("F" & radeklist & ":H" & radeklist).Value _
= Range("B" & radek & ":D" & radek).Value
End If
Next radek
End Sub
citovat