Why would the ErrrorHandler get ignored, and raise a 'Run-time error' instead?
The code:
========================================
Private Sub cmdDDE_Click()
On Error GoTo ErrorHandler
'other stuff here
ErrorHandler:
Select Case Err.Number
Case 282 ' "Can't find dde conn" error.
MsgBox "Open GoldMine and try again!", vbOKOnly, "Open GoldMine..."
Exit Sub
Case Else
End Select
end Sub
=========================================
This error comes up:
Run time error '282'
no foreign application responded to DDE initiate.
Any ideas? Thanks..
--Bill
One may not reach the dawn save by the path of the night
--Kahlil Gibran
The code:
========================================
Private Sub cmdDDE_Click()
On Error GoTo ErrorHandler
'other stuff here
ErrorHandler:
Select Case Err.Number
Case 282 ' "Can't find dde conn" error.
MsgBox "Open GoldMine and try again!", vbOKOnly, "Open GoldMine..."
Exit Sub
Case Else
End Select
end Sub
=========================================
This error comes up:
Run time error '282'
no foreign application responded to DDE initiate.
Any ideas? Thanks..
--Bill
One may not reach the dawn save by the path of the night
--Kahlil Gibran