07-20-2012, 12:53 PM
You can use Err object to capture error number and error message
Please see the example below
Regards,
Ravi
Please see the example below
Code:
On error resume next
systemutil.run "C:\flight.exe"
msgbox "Error Number :"&Err.number &vbcrlf & "Error Description:"& Err.Description
Regards,
Ravi