Currently i have a vba code that will copy the last active row with formulas and all and paste it in the next row under it. Instead i would like it to copy the last 10 active rows and paste them under it. Can someone help me tweak my current code to help allow this?
'Sub RunMost()
Dim ws As Worksheet
For Each ws In Sheets
If ws.Name = ("Sheet1") Then
ws.Activate
' Go to last cell
Cells(Rows.Count, 2).End(xlUp).Offset(2, 0).Select
' Copy formula from cell above
Rows(Selection.Row - 1).Copy
Rows(Selection.Row).Insert Shift:=xlDown
End If
Next ws
End Sub