Hi,
I am some problem copying data from one sheet and paste it to the first empty row on another sheet.
My code:
Sub findlastrow()
Dim lRow As Long
Dim Range As Range
' Find the FIRST EMPTY row by adding 1 to the last row
With ActiveSheet
' Determine last row
lRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
' Paste data
Windows("Book2").Activate
Rows("1:2000").Select
Selection.Copy
Windows("insert first empty row.xls").Activate
Range("lRow").Select
ActiveSheet.Paste
End With
End Sub
Thanks in advance!
I am some problem copying data from one sheet and paste it to the first empty row on another sheet.
My code:
Sub findlastrow()
Dim lRow As Long
Dim Range As Range
' Find the FIRST EMPTY row by adding 1 to the last row
With ActiveSheet
' Determine last row
lRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
' Paste data
Windows("Book2").Activate
Rows("1:2000").Select
Selection.Copy
Windows("insert first empty row.xls").Activate
Range("lRow").Select
ActiveSheet.Paste
End With
End Sub
Thanks in advance!