Hi, I'm new to VBA, I have a code which is below, the code works great if my data start in column A, but my data start in column D row 2. How do I change it for column D?
VBA Code:
Private Sub CommandButton1_Click()
For i = 2 To 25
If Worksheets("Today").Cells(i, 9).Value > 2 Then
Worksheets("Today").Rows(i).Copy
Worksheets("Completed").Activate
b = Worksheets("Completed").Cells(Rows.Count, 1).End(xlUp).Row
Worksheets("Completed").Cells(b + 1, 1).Select
ActiveSheet.Paste
Worksheets("Today").Rows(i).ClearContents
End If
Next
End sub