I'm trying to identify all duplicate names across an entire workbook and alert the data entry person. I have it working perfectly for Lname but can't get it to work for both Fname + Lname meaning I only want the message to trigger if Lname + Fname are not unique.
e.g. If Sue Flockey exists on Sheet 1 and a user tries to enter Sue Flockey on Sheet 2 they would receive a message And no message if they enter 'Sue', OR 'Flockey' OR 'Bob Flockey'.
My vba code evaluates as follows;
Sheet2 evaluates Sheet1
Sheet3 evaluates Sheet1 & Sheet2
Sheet4 evaluates Sheet1, 2, & 3
Sheet5 evaluates Sheet1, 2, 3, & 4
,... and so on to Sheet12
I've also tried using concatenation on Lname + Fname in column Z but can't get my code to work on a calculated field even when using the Worksheet_Calculate()
I've also played around with declaring a new Range A:B and A1:B59
Here is the code I'm using (sample from Sheet3 aka June 2018)-
Any help is much appreciated.
Notes:
Lname range is A6:A59
Fname range is B6:B59
My Concatenate\calculated field (if it's suggested to go this route) is Z6:Z59
Bookmarks