Hi,
please HELP, so i have set up the userform which is for my transport records. basically i have 40 columns worth of data (40 textboxes on my userform), columns D to O are reference numbers. for example column A =customer name, column B = collection date, column C = collection time, column D=ref1,column E=ref2 until we get to column O which is ref12. the issue i have is i cant have the same reference number in any of these columns, i need a solution where all twelve textboxes are checked against all columns D to O. example below (this customer is only using one REF so columns E-O will be left blank, second example is a customer using 3 REF's but the REF code 123 has already been used, note that this REF might not be in the same column/textbox as before. this is why it is important that all columns are checked.
example 1
A-Customer name:toys 4 u
A-Customer name:toys 4 u (textbox1)
B-collection date:15/01/2023 (textbox2)
C-collection time: 09:00 (textbox3)
D-ref1:123 (textbox4)
example 2
A-Customer name:toys 4 u (textbox1)
B-collection date:15/01/2023 (textbox2)
C-collection time: 09:00 (textbox3)
D-ref1:456 (textbox4)
E-ref2:789 (Textbox5)
F-ref3:123 (textbox6)
as you can see in example 2, textbox6 =column F is now a duplicate because this was recorded in example 1 but in textbox4=column D.
i would also like a msgbox if a duplicate is found " Reference already exists, please use sequence e.g 123-1
pleaseeeeeeeeeeeeeeeeeeeeee help!!!!
Bookmarks