I actually resolved this with those code. I have i as 4 because there are often times that the first 5 rows do not need to be moved.
Sub CopyCells1()
Dim i As Long, lastRow As Long, rngToMove As Range
lastRow = Worksheets("cxl macro test").Cells(1048576, 1).End(xlUp).Row
For i = 4 To lastRow
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 10) = Worksheets("cxl macro test").Cells(i - 1, 1)
Worksheets("cxl macro test").Cells(i - 1, 1) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 11) = Worksheets("cxl macro test").Cells(i - 1, 2)
Worksheets("cxl macro test").Cells(i - 1, 2) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 12) = Worksheets("cxl macro test").Cells(i - 1, 3)
Worksheets("cxl macro test").Cells(i - 1, 3) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 13) = Worksheets("cxl macro test").Cells(i - 1, 4)
Worksheets("cxl macro test").Cells(i - 1, 4) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 14) = Worksheets("cxl macro test").Cells(i - 1, 5)
Worksheets("cxl macro test").Cells(i - 1, 5) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 15) = Worksheets("cxl macro test").Cells(i - 1, 6)
Worksheets("cxl macro test").Cells(i - 1, 6) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 16) = Worksheets("cxl macro test").Cells(i - 1, 7)
Worksheets("cxl macro test").Cells(i - 1, 7) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 17) = Worksheets("cxl macro test").Cells(i - 1, 8)
Worksheets("cxl macro test").Cells(i - 1, 8) = ""
End If
If Worksheets("cxl macro test").Cells(i, 1) = "" And Worksheets("cxl macro test").Cells(i - 3, 1) = "" Then
Worksheets("cxl macro test").Cells(i - 2, 18) = Worksheets("cxl macro test").Cells(i - 1, 9)
Worksheets("cxl macro test").Cells(i - 1, 9) = ""
End If
Next i
Although for some reason, I can't get it to review the last row of contents and it doesn't move the required row. Does anyone know how i should tweek it?