VBA Copy Range and Past till Last Row

winde

New Member
Joined
Nov 27, 2018
Messages
32
What code do i use to do the following?

Copy range I2:I14

Paste from I15 to Last row(based on column A).

Thanks.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try
Code:
Sub Maybe()
Dim lr As Long, i As Long
lr = Cells(Rows.Count, 1).End(xlUp).Row
    For i = 1 To Int(lr / 13) - 1
        Range("I2:I14").Copy Cells(Rows.Count, 9).End(xlUp).Offset(1)
    Next i
End Sub
 
Upvote 0
Code:
Sub Definitely()
    Range("I2:I14").AutoFill Range("I2:I" & Range("A" & Rows.Count).End(xlUp).Row)
End Sub
 
Last edited:
Upvote 0
Code:
[table="width: 500"]
[tr]
	[td]Sub Definitely_Maybe()
  Range("I3:I" & Cells(Rows.Count, "A").End(xlUp).Row) = Range("I2").Formula
End Sub[/td]
[/tr]
[/table]
 
Last edited:
Upvote 0
Try
Code:
Sub Maybe()
Dim lr As Long, i As Long
lr = Cells(Rows.Count, 1).End(xlUp).Row
    For i = 1 To Int(lr / 13) - 1
        Range("I2:I14").Copy Cells(Rows.Count, 9).End(xlUp).Offset(1)
    Next i
End Sub

Thanks..works like a charm
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,716
Members
449,093
Latest member
Mnur

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