What is the best way to access a serial port from VBA?

后端 未结 3 570
不思量自难忘°
不思量自难忘° 2020-11-30 05:34

What is the best way to access a serial port from VBA?

I have a need for some of our sales reps to be able to send a simple string over the serial port from an actio

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 05:58

    The Win32 API handles the serial port as a file. You can access the serial ports directly by calling these API functions from within VBA. I had to do this for an old .NET application but VBA is no different.

    Rather than hash it out for you on this site, here's a reference I've hung onto over the years. How to perform serial port communications in VBA

提交回复
热议问题