I am working on a POS (point of sale) Program using excel (2016) Vba.

I have a activeX textbox for inputs which can be inputted by hand or by using a barcode scanner.

I need excel to know which way a user has inputted the barcode. (either by hand or by barcode-scanner)

How can i see this using vba code? (keep in mind that barcode scanners input values much quicker than a human does, so probably a solution is seeing the timing difference or something like that..)

-Thanks