Excel programmers
I would like to run an Excel VBA code on an excel sheet that contains data that varies from day to day. And copy that range to a sheet that contains rows of the same data.
How can write the code to specify the destination range to start pasting at the start of an empty row after the exciting data (I hope I am making sense) .it Like Appending the data. Knowing that there is empty rows.. So I would like to start from the last row from the sheet and go up.
I have started to write the code but couldn’t know how to finish it
Dim I as Long
Dim RngDestination As Range
Dim Wkb As Workbook
Dim Wks As Worksheet
Set RngDestination = Wkb("Test for Annuity Daily Adds.xls") .Wks("Annuity Rec Feb 2002").Range("A6522").select
For i = Cells(Rows.Count, "A").End(xlUp).Row To i Step -1
Cells(i, "A").EntireRow.Copy Destination:=RngDestination
Next i
End Sub
This code does not work J
Thanks for the help
I would like to run an Excel VBA code on an excel sheet that contains data that varies from day to day. And copy that range to a sheet that contains rows of the same data.
How can write the code to specify the destination range to start pasting at the start of an empty row after the exciting data (I hope I am making sense) .it Like Appending the data. Knowing that there is empty rows.. So I would like to start from the last row from the sheet and go up.
I have started to write the code but couldn’t know how to finish it
Dim I as Long
Dim RngDestination As Range
Dim Wkb As Workbook
Dim Wks As Worksheet
Set RngDestination = Wkb("Test for Annuity Daily Adds.xls") .Wks("Annuity Rec Feb 2002").Range("A6522").select
For i = Cells(Rows.Count, "A").End(xlUp).Row To i Step -1
Cells(i, "A").EntireRow.Copy Destination:=RngDestination
Next i
End Sub
This code does not work J
Thanks for the help