I copy and paste a table of external links onto another table as only values.
I need to continue this process without overwriting the old data. The code is pasting the new data over the old data even though I added in the "lastrow" comment.
I used this before when I use the normal paste code, but this is my first time trying to use pastespecial.
Sub Check() 'compares old and new values
If Worksheets("Test").Range("N2").Value <> Worksheets("Test").Range("N5").Value Then
Worksheets("Test").Activate
Worksheets("Test").Range("TestTable").Select
Selection.Copy
Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("Destination" & lastrow).PasteSpecial xlPasteValues
ElseIf Worksheets("Test").Range("O2").Value <> Worksheets("Test").Range("O5").Value Then
Worksheets("Test").Activate
Worksheets("Test").Range("TestTable").Select
Selection.Copy
Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("Destination" & lastrow).PasteSpecial xlPasteValues
End if
How do I paste the data in the next available row?