I am a real VBA amature and would really appreciate some help.
I have written the below code to cycle through a column, look for a certain string (heading), if the string is found, search for numbers below the string and copy values to a list.
I am getting a 'Next without For' compile error.
Thanks in advance for any assistance.
Sub data()
For i = 0 To 1000
If Range("C1").Offset(i, 0) <> Range("G2") Then Next i Else
For j = 1 To 20
If Not IsNumeric(Range("C1").Offset(i, 0).Offset(j, 0)) Then Next j Else
Range("G1").End(xlDown).Offset(1, 0) = Range("C1").Offset(i, 0).Offset(j, 0).Value
Next j
Next i
End Sub