PortOpen Property Example

The following example opens communications port number 1 at 9600 baud with no parity checking, 8 data bits, and 1 stop bit:

MSComm1.Settings = "9600,n,8,1"
MSComm1.CommPort = 1
MSComm1.PortOpen = True