VBA Code:
Sub MoveRange()
Dim i As Long
For i = 2 To 10
If Not IsEmpty(Range("A" & i)) Then _
Range("F" & i) = Range("A" & i)
If Not IsEmpty(Range("A" & i)) Then _
Range("G" & i) = Range("B" & i)
If Not IsEmpty(Range("A" & i)) Then _
Range("H" & i) = Range("C" & i)
If Not IsEmpty(Range("A" & i)) Then _
Range("C" & i).ClearContents
If Not IsEmpty(Range("A" & i)) Then _
Range("B" & i).ClearContents
If Not IsEmpty(Range("A" & i)) Then _
Range("A" & i).ClearContents
Next i
End Sub
So far my "poor" coding attempt moves the Range ("A:C") to Range("F:H") and clear contents of Range ("A:C") where A cell was not empty... I need help to modify it...
the goal is to move Range(A:C) to next empty row in Range ("F:H") if Col A not empty. After the move, the range("A:C") where A cell was not empty should be deleted.
Last edited: