Do
If MyInput.Cells(r2, 1) <> "" Then
Mydata.Cells(r1, col + 1) = MyInput.Cells(r2, 1)
Mydata.Cells(r1, col + 2) = MyInput.Cells(r2, 2)
Mydata.Cells(r1, col + 3) = MyInput.Cells(r2, 3)
Mydata.Cells(r1, col + 4) = MyInput.Cells(r2, 4)
Mydata.Cells(r1, col + 5) = MyInput.Cells(r2, 5)
Mydata.Cells(r1, col + 6) = MyInput.Cells(r2, 6)
Mydata.Cells(r1, col + 7) = MyInput.Cells(r2, 7)
Mydata.Cells(r1, col + 8) = MyInput.Cells(r2, 8)
Mydata.Cells(r1, col + 9) = MyInput.Cells(r2, 9)
r1 = r1 + 1
End If
If MyInput.Cells(r2, 10) <> "" Then
Mydata.Cells(r1, col + 1) = MyInput.Cells(r2, 10)
Mydata.Cells(r1, col + 2) = MyInput.Cells(r2, 11)
Mydata.Cells(r1, col + 3) = MyInput.Cells(r2, 12)
Mydata.Cells(r1, col + 4) = MyInput.Cells(r2, 13)
Mydata.Cells(r1, col + 5) = MyInput.Cells(r2, 14)
Mydata.Cells(r1, col + 6) = MyInput.Cells(r2, 15)
Mydata.Cells(r1, col + 7) = MyInput.Cells(r2, 16)
Mydata.Cells(r1, col + 8) = MyInput.Cells(r2, 17)
r1 = r1 + 1
End If
If MyInput.Cells(r2, 18) <> "" Then
Mydata.Cells(r1, col + 1) = MyInput.Cells(r2, 18)
Mydata.Cells(r1, col + 2) = MyInput.Cells(r2, 19)
Mydata.Cells(r1, col + 3) = MyInput.Cells(r2, 20)
Mydata.Cells(r1, col + 4) = MyInput.Cells(r2, 21)
Mydata.Cells(r1, col + 5) = MyInput.Cells(r2, 22)
r1 = r1 + 1
End If
r2 = r2 + 1
Loop Until MyInput.Cells(r2, 17).Value = ""