USB port number

Excelgreenhand

Board Regular
Joined
Oct 18, 2009
Messages
101
I have connected two barcode scanners on the same computer, is it possible to know which one is the input device based on the USB port id or just depends simply on the prefix of the guns.
Any suggestions !? (VBA please if you could):(
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hello Excelgreenhand,

I am not clear on what information you want. Every barcode scanner is an input device connected to an port, either a COM or USB.

Do want to return the id of the scanner in use?
 
Upvote 0
Hello Leith,

Thanks for the prompt reply and interest.
I would like to get and identify which scanner's input and contents when writing in like into an Excel's sheet from the two continuous feeding and analyze the quantity scanned and the scanner's info.
Thank you again.
 
Upvote 0
Hello Leith,

Thanks for the prompt reply and interest.
I would like to get and identify which scanner's input and contents when writing in like into an Excel's sheet from the two continuous feeding and analyze the quantity scanned and the scanner's info.
Thank you again.
For the same problem I am trying to find the solution. So if anyone know the solution means please respond.
 
Upvote 0
Hello, Happy New Year to All!
A big surprise to my original post and still someone is still interested to find out more.
I would like to keep it simple.
I have 2 scanners scanning the same piece of barcode to retrieve info from it, but first I have to find out who initiates the action.
Scanner I (from production) and Scanner II (from packing), here I would like to identify who it is and that is why I need to retrieve the USB id since I know which USB port I plug on the mobo.
ie. If Scanner I is plugged in the USB000001(production) and If Scanner II is plugged in the USB000002(packing) , I could do report what the action they do and credit that department.
Let me know if the above is clear, and awaiting for ALL your suggestion and advice. Info is stored into Excel sheet.
Again Happy New Excel year!
 
Upvote 0
It'd be a lot easier if you just terminated each scan with a different character, you'd then only need to look at the last character of the scan to know where it had come from
 
Upvote 0
Thanks.
Good idea.
But how about I have 255 USB scanners attached to a single computer.
Good idea anyway, good start.
 
Upvote 0
do you really have 255 scanners ?
 
Upvote 0

Forum statistics

Threads
1,225,867
Messages
6,187,475
Members
453,429
Latest member
JeanDuarnet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top