Read data from com port to Excel 2013 UserForm

temens

New Member
Joined
Apr 7, 2015
Messages
19
I have written the code necessary for my user form to place data from my text fields into the excel sheet where I want it, but I have to use a piece of third party software to open the com port connection to my reader/scanner and place the data in my text fields. I am a novice with VBA and am not familiar with com port communication code. I've searched and searched for something that will let me just receive from the com port when some data is sent, but I can't get anything I've found to work. Here is what I'm working with:

I have an RFID scanner connected to COM 4 through a USB-to-Serial Bridge
My scanner can send a 15-character number, and a date/time separated by tabs
My device operates with: 9600 baud, 8-bits, no parity, 1 stop bit, RTS/CTS flow control

I do not need to write to the com port, only receive the data when an RFID is scanned. I would like to open communication with the port to receive data on TextField Enter.

Can someone please help me with this. If I could just get some code that will let me receive from the port and place the data in a cell on the sheet, I could take it from there. Thanks for the help.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,730
Messages
6,126,527
Members
449,316
Latest member
sravya

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