NOTE: I was able to upload a link to a picture in the comments.
I am using a for loop in an excel macro in an attempt to compile data.
I have the following VBA code:
Sub MoveData()
'
' MoveData Macro
'
'
Dim rng As Range
Set rng = Macro.Application.Range("R1:X1000")
With rng
For i = 1 To 200
a = 5 * i
b = i + 1
Range(a, 18).Select
Selection.Copy
Range(b, 3).Select
ActiveSheet.Paste
Next i
End With
End Sub
I get the following error message: Run-time error '424':
Object required
Any clarification would be much appreciated! I've been stumped on this for quite a while!
Range(a,18)andRange(b,3)are always the same?Macro.Application.Rangeto thisActiveSheet.Range