QueenOfHearts
New Member
- Joined
- Aug 26, 2016
- Messages
- 4
I am brand new to VBA, so please go easy on me...
I have spent several hours learning about VBA, and playing around with different ways to make my looping problem work, but I am now at a complete loss.
I am trying to create a copy/paste macro to loop through my worksheet. I need L3:Q3 to be copied and pasted into F4:K4, then have the same action performed on every OTHER row down, 200 times. My code is copying and pasting but in the wrong columns. It is copying and pasting for every other row, but is copying columns DBD:DBI and pasting into columns DAX:DBC. This is completely out of my data range. My current code is below. Any help on how to fix this would be most appreciated!
Dim x As Integer
For x = 3 To 200
ActiveCell.Offset(2, 11).Range("A1:F1").Select
Selection.Copy
ActiveCell.Offset(1, -6).Range("A1").Select
ActiveSheet.Paste
Next x
End Sub
Thank you!

I am trying to create a copy/paste macro to loop through my worksheet. I need L3:Q3 to be copied and pasted into F4:K4, then have the same action performed on every OTHER row down, 200 times. My code is copying and pasting but in the wrong columns. It is copying and pasting for every other row, but is copying columns DBD:DBI and pasting into columns DAX:DBC. This is completely out of my data range. My current code is below. Any help on how to fix this would be most appreciated!
Dim x As Integer
For x = 3 To 200
ActiveCell.Offset(2, 11).Range("A1:F1").Select
Selection.Copy
ActiveCell.Offset(1, -6).Range("A1").Select
ActiveSheet.Paste
Next x
End Sub
Thank you!