Hello,
I'm begging for help from the experts and those who are well versed in vba. Thank you
The Exercise
What I am trying to achieve is to use a simple userform to record a data on an excel worksheets.
Worksheet has 5 columns in total Supplier (A), Service (B), Reporting Month (C), Sales (D) and Commission (E)
A is just a text (name)
B is also a text (name)
C in a date on format (mm-yy)
D and E are numbers (currency)
The Trick
I would like the vba to prompt me if values already exist based on values from 2 different columns from he same row.
Solution so Far: 1 column
I have found the way to warn me if let's say one of the column is unique ID which is not the case in my example so therefore I have to check two columns in order to assess whether there is a duplication or not. That is, column A (supplier) and column C (reporting month)
So as an example if Tesco has already reported for Aug-18 then this will flag up as a duplicate.
Now, if either column A or column C is a unique value then as soon as the same value is entered then it will flag up, as per the following vba code (for supplier as a unique ID)
The Issue![]()
Please Login or Register to view this content.
I would like to have a code that would do similar thing but extended to 2 columns criteria - that is, column A and column C to be check for duplication.
Any help? Thank you and much love.
Bookmarks