Excel Gurus,
I have a working UserForm (please see attached) that adds data to a certain worksheet based on the year (2010, 2011, 2012, 2013) value the user enters. I wanted to see if there was a way using VBA to verify if the user is entering a duplicate entry based on certain fields i.e. document number field + total amount + company name + year) while the user is entering the data in the UserForm or after the user clicks the Add Data Button. So if there is a duplicate, a msgbox appears that tells the user that this is a duplicate entry and that the data won't get saved. It will then direct them back to the userform they just came from. If it isn't a duplicate, then it basically functions the way it ought to.
Please let me know if this is doable using VBA.
Thank you for your help in advance.
J
Bookmarks