ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Comm 1 (https://www.excelbanter.com/excel-programming/280795-comm-1-a.html)

Stark

Comm 1
 
Sorry if this is up there twice but I did not see it the up so. Here goes again.
I can't get comm1 to open and here is the code that I am useing. I just keep getting errors. Again sorry if this is up twice

Private Sub CommandButton1_Click()
Dim a As Boolean
a = False
a = CheapComm1.OpenCommPort(€œCOM1€, "9600,n,8,1")
If a = True Then
MsgBox "open"
End If
If a = False Then
MsgBox "error"
End If
End Sub


All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com