Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error handling

Status
Not open for further replies.

Springy

Programmer
Oct 20, 2000
5
GB
I have a vbscript that opens excel and does a whole load of stuff. If the excel or the VB script fail I want the vbscript to exit via an error handler.

How do I do this??


Thanks

Tim
 
James,

could you elaborate on the on error goto part because I tried it but it does not work. Thks.
 
don't know if that works, think you have to use in

on error resume next

for vbscript jared@aauser.com
 
If you use
Code:
On Error Resume Next
in VBScript you need to check for a sepcific Error Number or check after where you think an error will occur to handle the error. This type of error handling is very good for handling ADO connection failures.

I'm sure that the label method will work though. Maybe I'm just confused with using it in VB all the tiome though.

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top