Scanning FedEx labels into a visual basic program
- by 0bfus
I have a program that has tracking numbers entered into it and it stores them in a database and i would like to add a scanner to the mix. The scanner is acting like a keyboard and scannes just fine, the problem is scanning a FedEx number gives a 32 digit number and i am only iterested in the tracking number portion of it. I saw an example on the web for an excel macro and tried to modify it but it doesnt seem to work. Is there something i could do to just get the 12 digit number? This is what it looks like so far. Any help would be greatly appreciated.
With BarcodeText
If .Text < "1z99999999999999999" Then
.Text = Mid(.Text, 17, 12)
End If