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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Excel data via COM port

Status
Not open for further replies.

maharg

Technical User
Joined
Mar 21, 2002
Messages
184
Hi

Can anyone tell me how to send the numeric value in an Excel data cell out of the RS232 COM port of my PC?

Thanks, in anticipation

Graham Laming
 
You'll need an API Comm object...maybe you can load it via the ref. library, and that is assuming that you have a program installed on your pc (like visual basic 6.0) that has a comm object.

If not then you can use the lpt1 port this is not documented, but does work...


example:

open "lpt1:" for output as #1 'you might not need the colon
print #1, range("b3")
close


 
oops not API...but ActiveX
 
Thanks for that ! I'll give it a try.

Regards

Graham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top