Login | |
|
 |
RE: Multiple buttons help - 9/15/2007 9:05:42 AM
|
|
 |
|
| |
sheepz
Posts: 247
Score: 2
Joined: 3/17/2006
From: Riverside the 909s
Status: offline
|
you're probably going to have more luck posting this in a VBA forum. but at a quick glance of the code posted looks wrong, you have End if's without the opening If statements: Private Sub CMDAVIDUM_Click() On Error GoTo ErrorAlarm WS_Client.SendData "avidumad" Exit Sub ErrorAlarm: MsgBox "Sorry, error occured" End If <--- only closing If statement End Sub Private Sub CMDCALCOMP_Click() On Error GoTo ErrorAlarm WS_Client.SendData "calcomp" Exit Sub ErrorAlarm: MsgBox "Sorry, error occured" End If <--- only closing If statement Missing "End Sub" Private Sub CMDDIETAD_Click() On Error GoTo ErrorAlarm WS_Client.SendData "dietad" Exit Sub ErrorAlarm: MsgBox "Sorry, error occured" End If <--- only closing If statement Missing "End Sub" it should be something like: Private Sub Do action here End Sub If Action = True Then <--- Opening If statement Do something here End if <--- Closing If statement
< Message edited by sheepz -- 9/15/2007 9:14:15 AM >
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|