Villalobos
Active Member
Hello,
I use this code to copy and paste data into Table1:
and after the pasting the range of Table1 is extended with blank rows and I do not know why. Please, could someone help me where I made a mistake and how should avoid that?
Thanks in advance the reply!
I use this code to copy and paste data into Table1:
Code:
Sub CopyPasteData()
Dim lastrow As Long
lastrow = Sheets("Sheet2").Range("B65536").End(xlUp).Row + 1
Range("A14:C" & lastrow).Copy
Sheets("Sheet2").Range("B" & lastrow).PasteSpecial xlPasteValues
End Sub
and after the pasting the range of Table1 is extended with blank rows and I do not know why. Please, could someone help me where I made a mistake and how should avoid that?
Thanks in advance the reply!