i have a workbook and im trying to copy the same row each time from A3:AP3 and paste it into the other closed workbook in the same range using the below code, it does work but it does it twice and it doesnt wanna add more rows in the destination workbook, im not sure what is the problem
Sub copytoclosed()
Dim destSht As Worksheet
Dim destwb As Workbook
Dim copyrow, destlrow As Long
Workbooks.Open ("C:\Users\mgamal22\Desktop\sahar\New\DataBase.xlsx")
Set destSht = ActiveWorkbook.Worksheets("Sheet1")
With ThisWorkbook.Worksheets("Records")
With .Range(.Range("A3:AP3"), .Range("A3:AP3").End(xlDown))
destSht.Cells(destSht.Rows.Count, 1).End(xlUp).Offset(1).Resize(.Rows.Count, .Columns.Count).Value = .Value
End With
End With
destSht.Parent.Close True
End Sub