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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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