A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Sub CopyWk1ToWk2()
Dim SWk As Workbook, TWk As Workbook
Dim SWs As Worksheet, TWs As Worksheet
Dim TLastRow As Long, SLastRow As Long
Dim SRng As Range
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Set SWk = Workbooks("Book1.xlsm")
Set SWs = SWk.Worksheets("Master")
SLastRow = SWs.Range("A" & Rows.Count).End(xlUp).Row
If SLastRow = 1 Then Exit Sub
Set TWk = Workbooks.Open("C:\Test\Book2.xlsx")
Set TWs = TWk.Worksheets("Sheet1")
TLastRow = TWs.Range("A" & Rows.Count).End(xlUp).Row
If TLastRow = 1 Then TLastRow = 0
Set SRng = SWs.Rows("2:" & SLastRow)
SRng.Copy TWs.Range("A" & TLastRow + 1)
SRng.ClearContents
TWk.Close SaveChanges:=True
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub