Copy & Paste then Repeat

RyanCortina

New Member
Joined
Feb 5, 2015
Messages
2
I'm trying to create a basic macro but I'm not a programmer what-so-ever so I was hoping someone could help.
What I'm trying to do is:
Copy A2:A3 and Paste in A5:A6, repeat process by then continuing to paste into A8:A9, and so on (skipping A1, A4, A7, A10, etc...)

Any help is greatly appreciated.
Thanks,
Ryan
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try this. Change the 100 to the last row you want to paste to.

Code:
[COLOR=darkblue]Sub[/COLOR] Copy_Paste_3()
    [COLOR=darkblue]Dim[/COLOR] i [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]Long[/COLOR]
    Range("A2:A3").Copy
    [COLOR=darkblue]For[/COLOR] i = 5 [COLOR=darkblue]To[/COLOR] [COLOR=#ff0000]100[/COLOR] [COLOR=darkblue]Step[/COLOR] 3
        Range("A" & i).PasteSpecial xlPasteAll
    [COLOR=darkblue]Next[/COLOR] i
    Application.CutCopyMode = [COLOR=darkblue]False[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]
 
Upvote 0
Try this. Change the 100 to the last row you want to paste to.

Code:
[COLOR=darkblue]Sub[/COLOR] Copy_Paste_3()
    [COLOR=darkblue]Dim[/COLOR] i [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]Long[/COLOR]
    Range("A2:A3").Copy
    [COLOR=darkblue]For[/COLOR] i = 5 [COLOR=darkblue]To[/COLOR] [COLOR=#ff0000]100[/COLOR] [COLOR=darkblue]Step[/COLOR] 3
        Range("A" & i).PasteSpecial xlPasteAll
    [COLOR=darkblue]Next[/COLOR] i
    Application.CutCopyMode = [COLOR=darkblue]False[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]


Thanks Alpha, worked perfectly.
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,243
Members
449,093
Latest member
Vincent Khandagale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top