VBA Copy and Paste Macro Excel for range of cells to populate in column and then pick next range

besucool

New Member
Joined
Aug 5, 2013
Messages
7
Hi folks, been wrecking my brain on this.

Basically I want to copy and paste H1:H10 into C1:C10 and then pick next column of I1:I10 copy into next blank area of column C which is C11:C20; then copy next column J1:J10 into C21:30; then K1:K10 into C31:40 etc etc etc. This repeats itself for about 60 times from columns from H to BO.

So I am struggling picking a range of cells from column H after copying to move to next range on the right and copying into the next blank section in column C the target column.

Any help would be great.

Thanks,
 
:):):)

brilliant. I needed this for my work by Monday for work and was literally tearing my head out.

Owe you definitely a pint M.A.I.T. Anytime

Try this:

This will copy over all rows even if they are empty.

Code:
Sub Test()
'Modified
Application.ScreenUpdating = False
Dim i As Long
Dim Lastrow As Long
Lastrow = 1
LastColumn = Cells(1, Columns.Count).End(xlToLeft).Column
    'If you want to do this till last column with data in row(1)
    'Change 67 to "LastColumn"
    For i = 8 To 67
        Range(Cells(1, i), Cells(10, i)).Copy Destination:=Cells(Lastrow, 3)
        Lastrow = Lastrow + 10
  
    Next
Application.ScreenUpdating = True
End Sub

OK
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Glad I was able to help you. Come back here to Mr. Excel next time you need additional assistance.
:):):)

brilliant. I needed this for my work by Monday for work and was literally tearing my head out.

Owe you definitely a pint M.A.I.T. Anytime
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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