How do i read a Com4 serial port in VB for excel

spurs

Active Member
Joined
Oct 18, 2006
Messages
440
I an trying to read a device that is connected to my com4 serial port inside VB. Once read, I will format the output in Excel.

Does anyone have a suggestion as to what vba code would be needed in order to open a connecton and read the port?

Most of the information I have found on the web refers to Visual Basic 2005, but I am running Excel 2003 with visual basic 6.3

Thanks
 

Excel Facts

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

spurs

Active Member
Joined
Oct 18, 2006
Messages
440
Follow up question

I am not clear on how to use mscomm32.ocx. It is on my computer but how is this called or added into the vba code?
 

Forum statistics

Threads
1,136,305
Messages
5,674,984
Members
419,541
Latest member
freddyboots

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
Top