Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Error Handling

On Error Goto 0 will simply turn off custom error trapping. You have two
other choices:

1 - On error resume next - Will continue execution at the next statement
regardless of errors

2 - On Error Goto errUnknown - Will jump to the line errUnknown upon an
error. E.g.

On Error Goto ErrUnknown
DummyVal = 15/0 ' Will raise a divide by 0 error
Exit Sub

ErrUnknown:
msgbox Err.Description




--
Regards,


Bill Lunney
www.billlunney.com

"Bin" wrote in message
...
Is there anyway in Vb Program to use a code to override
Error Trapping setting in VB/Tools/Option?
If the setting is "Break on All Error", program error
handling statement will not work.
I tried to use "On Error Goto 0" to override it, but it
doesn't work.
Anyone can help? Thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Handling Kevin Excel Discussion (Misc queries) 4 June 19th 08 12:31 AM
Error handling problem Jim G Excel Discussion (Misc queries) 2 October 3rd 07 02:19 AM
Error Handling works only once linglc Excel Discussion (Misc queries) 1 March 7th 07 07:37 AM
Handling #NUM! error Michel Khennafi Excel Worksheet Functions 1 February 26th 07 08:49 PM
Error Handling for "my" menu bar dstiefe Excel Discussion (Misc queries) 0 July 27th 05 10:52 PM


All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"