I am working on a VBA code to copy data from the second cell "A2" down to the last cell with data in it (this range will change). I then want to paste that data starting at the last row of column A on another sheet.
My VBA code as of now seems to do nothing. Can someone help me figure out why?
Option Explicit
Public Sub AddNotes()
Dim lastRow1 As String
Dim lastRow2 As String
lastRow1 = Sheets("PropertiesToMatch").Cells(Rows.Count, 1).End(xlUp).Row
Sheets("PropertiesToMatch").Range("A2" & lastRow1).Copy
lastRow2 = Sheets("PropertyNotesToUpload").Cells(Rows.Count, "A").End(xlUp).Row + 1
Sheets("PropertyNotesToUpload").Range("A" & lastRow2).PasteSpecial Paste:=xlPasteValues
End Sub
Dim lastRow1 As String
andDim lastRow2 As String
toAs Long
? – Zack E