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!

How do you work a modem from VBA?

Status
Not open for further replies.

OzzieGeorge

Programmer
Jan 14, 2005
2,596
1
38
AU
I can connect to the modem and dial up another modem using the code....

Sub Comms()

UserForm1.MSComm1.CommPort = 4
UserForm1.MSComm1.Settings = "9600,N,8,1"
UserForm1.MSComm1.PortOpen = True
UserForm1.MSComm1.Output = "ATDT Numbertodial"

But whatever I put after this the modem hangs up almost immediately. Anybody got any suggestions what I am missing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top