Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to read data from an rs232 port with VBA?

Status
Not open for further replies.

JohanM

Programmer
Jul 21, 2000
3
NL
I have to read data from an RS232 port to use it in Excel. Is it possible to do this wit VBA? If so, how do I do that? If not, is it possible with VB or is there another possebility to do this?

It would be great if someone can help me.



 
You need the Comm actived object....it's part of any VB stand alone version to use comm ports directly....or you can use the lpt1: port directly, Excel doesn't openly support it, but if you use...


open "lpt1:" for input as random... it should work


also another option, (hyperterminal will access com ports) make a dde link between hyperterminal and excel...and control the hyperterminal with the sendkeys command in vba....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top