[FONT="]Hi All!
I have a macro that copies the last row of data on Sheet1 into the row below it:
[/FONT]
[FONT="]
I need it to copy that data into the 10 rows below it. I know that copying the expression
ten times will work (I've tried it), but surely there is a more elegant way of scripting the command. Can anyone help me? I'm clueless
Thanks,
Andrew B[/FONT]
I have a macro that copies the last row of data on Sheet1 into the row below it:
[/FONT]
Code:
[FONT="]Sub CopyRow()[/FONT]
[FONT="]Dim LR As Long[/FONT]
[FONT="]With Sheets("Sheet1")[/FONT]
[FONT="] LR = .Range("A" & Rows.Count).End(xlUp).Row[/FONT]
[FONT="] .Rows(LR).Copy Destination:=Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(1)[/FONT]
[FONT="] End With[/FONT]
[FONT="]End Sub[/FONT]
I need it to copy that data into the 10 rows below it. I know that copying the expression
Code:
.Rows(LR).Copy Destination:=Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(1)
Thanks,
Andrew B[/FONT]