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

Hello!

I have a huge workbook with hundreds of procedures.
I would like to add an error handling procedure, but I don't want to go into
each of the many procedures to write "on error goto blah blah blah".

Is there a way to create a general and global error handling technique,
maybe at the beginning of the module or something? Something like, "on error
run My_Error_Handler" but that applies to every procedure in the workbook.

Thanks in advance,
Albert C
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Global Error Handling

In short... No. there is a tool out there to make adding an error handler a
lot easier though. Check out this addin. Click one button and it will add all
of the error handling code you need to a single procedure. It alos does a
whole pile of other very useful stuff.

http://www.mztools.com/index.aspx
--
HTH...

Jim Thomlinson


"Albert" wrote:

Hello!

I have a huge workbook with hundreds of procedures.
I would like to add an error handling procedure, but I don't want to go into
each of the many procedures to write "on error goto blah blah blah".

Is there a way to create a general and global error handling technique,
maybe at the beginning of the module or something? Something like, "on error
run My_Error_Handler" but that applies to every procedure in the workbook.

Thanks in advance,
Albert C

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default Global Error Handling

Thank you sir.
I will look into it...

"Jim Thomlinson" wrote:

In short... No. there is a tool out there to make adding an error handler a
lot easier though. Check out this addin. Click one button and it will add all
of the error handling code you need to a single procedure. It alos does a
whole pile of other very useful stuff.

http://www.mztools.com/index.aspx
--
HTH...

Jim Thomlinson


"Albert" wrote:

Hello!

I have a huge workbook with hundreds of procedures.
I would like to add an error handling procedure, but I don't want to go into
each of the many procedures to write "on error goto blah blah blah".

Is there a way to create a general and global error handling technique,
maybe at the beginning of the module or something? Something like, "on error
run My_Error_Handler" but that applies to every procedure in the workbook.

Thanks in advance,
Albert C

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 error # 1004 Run-time error [email protected] Excel Programming 3 May 20th 08 02:23 PM
Set Error handling INSIDE error-trap Michelle Excel Programming 6 May 3rd 08 03:30 PM
Error Handling - On Error GoTo doesn't trap error successfully David Excel Programming 9 February 16th 06 05:59 PM
Error handling. Francis Brown Excel Programming 3 December 1st 05 12:47 AM
Error handling with a handling routine ben Excel Programming 0 March 15th 05 03:01 PM


All times are GMT +1. The time now is 06:13 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"