I keep getting the Invalid next control variable reference error on my macro. I am just trying to copy certain cells and then paste them down a row. The code is below. Any help would be greatly appreciated.
Sub ForecastPYupdate()
'
' ForecastPYupdate Macro
' Macro recorded 7/2/2008 by Rich Products Corp.
'
'
For I = 4 To 2000
For J = 9 To 20
If Cells(I, 1) = 1 And Cells(1, J) = 1 Then
Cells(I, J) = Selection.Copy
Cells(I + 1, J) = Selection.Paste
Next I
End If
End Sub
Sub ForecastPYupdate()
'
' ForecastPYupdate Macro
' Macro recorded 7/2/2008 by Rich Products Corp.
'
'
For I = 4 To 2000
For J = 9 To 20
If Cells(I, 1) = 1 And Cells(1, J) = 1 Then
Cells(I, J) = Selection.Copy
Cells(I + 1, J) = Selection.Paste
Next I
End If
End Sub