vba help please - Copying a Block of data and pasting 3 times in the same column

Xceller

Active Member
Joined
Aug 24, 2009
Messages
265
Hi everyone,

Let's say I have 3 rows of data (A,B,C) in column A. I would like to copy this block of data and paste it 3 times from Row10 to Row18 in the same order.
Thank you in advance for your help!

I tried this, but it doesn't work:

Range("A10:A18").value = Range("A1:A3").value


Column A
Row1: A
Row2: B
Row3: C
..
..
..
Expected result:
Row10: A
Row11: B
Row12: C
Row13: A
Row14: B
Row15: C
Row16: A
Row17: B
Row18: C
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How's this:

<font face=Calibri><SPAN style="color:#00007F">Sub</SPAN> foo()<br>    <SPAN style="color:#00007F">Dim</SPAN> i <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Long</SPAN><br>        <SPAN style="color:#00007F">For</SPAN> i = 10 <SPAN style="color:#00007F">To</SPAN> 18 <SPAN style="color:#00007F">Step</SPAN> 3<br>            Range("A1:A3").Copy Cells(i, "A")<br>        <SPAN style="color:#00007F">Next</SPAN> i<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>

HTH,
 
Upvote 0
Thank you Smitty for the quick help. It works perfectly. Is there any way to get around it without using a loop?
 
Upvote 0

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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