ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Comm1 not opening (https://www.excelbanter.com/excel-programming/280793-comm1-not-opening.html)

Stark

Comm1 not opening
 
Here is my problem I can't get comm 1 to open here is what I have so far and I just keep getting an error saying comm1 not open. Anyone have an idea?


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 01:53 AM.

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