So I set up a data validation list. I have a VBA code written (Thanks Pete) that converts the original barcode info into the correct part number by searching for specific patterns. However, I noticed I can scan an incorrect barcode (part number) into the text field where my data validation is, and NO errors occur. So column B is where I place my cursor before scanning, column C has the =barcode(A2) formula to reference the VBA for the pattern, and column D has the formula =C2 to pull the readout text from the output of the pattern. For some reason when I deliberately scan the wrong part into column B, it reads out a part that is not in my data validation list in column C. Does anyone know why this happens?
B | C | D |
Scan | =barcode(A1) | PCLB5B13W020CG |