Hi!
If I have a program with a ActiveX control, and the users computer does not have it, the program will display a VB error message and not run.
Is it possible for my program to trap this error and continue without the ActiveX control?
Printable View
Hi!
If I have a program with a ActiveX control, and the users computer does not have it, the program will display a VB error message and not run.
Is it possible for my program to trap this error and continue without the ActiveX control?
Dim obj As Object
On error goto handler
Set obj = CreateObject("AppName.ObjName")
On error goto 0
Exit sub
Handler:
Msgbox "It failed!"
End 'either one
Resume 'of these is ok
End sub