• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help needed! Copy and Paste last Row n times - Very slow

laura123

New Member
I am currently trying to copy and paste last row (which contains formulas) n times at the end of my data.

I have written this so far:

>>> use code - tags <<<
Code:
            Dim lRow As Long
            Dim i As Integer
       
            For i = 1 To n
            lRow = Ws.Cells(Rows.Count, 1).End(xlUp).Row
            Ws.Range("A" & lRow).EntireRow.Copy Ws.Range("A" & lRow + 1)
           
            Next i

and it works! problem? it is very very slow... usually i just have to paste around 3-7 rows, is there a way to do that without an iteration?

In addition, how could i select all data less last row and paste as values? thank you in advance,

Laura
 
Last edited by a moderator:
Back
Top