Code:
Private Sub CommandButton1_Click()
Dim c As Range
For Each c In Range("F16:F30")
If IsNumeric(c.Value) Then
c.Rows("1:1").EntireRow.Select
Selection.Copy
Sheets("Sheet2").Range("A65000").End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
End If
Next c
End Sub
In the range of F16:F30 there are two cells with the number 5 in it. I just want the code to grab each entire row and copy the rows to Sheet 2.
This code grabs the line AFTER the last 5 in column F.
Where is my error?