Computing.Net > Forums > Office Software > COM & LPT Communication - Excel VBA

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

COM & LPT Communication - Excel VBA

Reply to Message Icon

Name: Alchard
Date: November 19, 2004 at 16:11:19 Pacific
OS: Windoes 98se
CPU/Ram: VIA C3/256 Mb
Comment:

I have failed to find a comprehensible method of writing data to a serial and parallel port on a PC using Excel VBA. I wish to send control code (ESC/P2 codes) to an Epson dot matrix printer and send Hayes modem commands to a serial port.



Sponsored Link
Ads by Google

Response Number 1
Name: rayok
Date: November 21, 2004 at 00:14:10 Pacific
Reply:

What you are trying to do is write directly to the device, what what windows generally and vb specifically wants you to do is write to the object. The last time I helped someone do this he had to get the program to open a dos debug session you can then write to devices via their address in memory. Search for dos debug on the Internet there is loads of stuff

Techy n Welsh


0

Response Number 2
Name: elric
Date: November 21, 2004 at 04:32:34 Pacific
Reply:

G'day,

You can use VBA as you would VB6 to write to the printer or serial port using DLLs.
There are a number of them out there, but I would strongly suggest that you visit this site:
www.windmill.co.uk

Another good site, but not so specific to Excel is:
www.lvr.com
good luck,
Elric


0

Response Number 3
Name: Grok Lobster
Date: November 22, 2004 at 09:21:03 Pacific
Reply:

You can also use the Shell function to call a QBasic program that talks to the ports.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: COM & LPT Communication - Excel VBA

Excel VBA and Access communication www.computing.net/answers/office/excel-vba-and-access-communication-/4755.html

Excel VBA www.computing.net/answers/office/excel-vba/2560.html

Excel VBA code www.computing.net/answers/office/excel-vba-code/4587.html