Hello everyone,
I am working on a project where I am pasting rows of information into a table. I have a button that copies a row from one place and pastes it into the first empty row in a table. I want to prevent it from pasting the row if the exact same row already exists in the table. What is the best way to do this?
Here is the code to paste the row upon the button click:
Private Sub SaveButton_Click()
Sheets("Sheet1").Range("A2:BI2").Copy
Sheets("Database").Range("A60000").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteFormats
Sheets("Database").Range("A60000").End(xlUp).Offset(1, 0).PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
End Sub
Thank you for your help.
Bookmarks