LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default on error coding

On Nov 11, 3:35*pm, "Otto Moehrbach"
wrote:
It's not a matter of before or after. *It's bracketing your action code with
the On Error code. *Before the code that you thing might error out, write
something like "On Error Resume Next". *With this line you have said "Don't
EVER stop on ANY error". *Obviously, you don't want that. *You just want to
trap the possible error within a small bit of your code. *After your code
has dealt with the error you want a line like "On Error GoTo 0". *That
returns the error detection system back to normal. *Does this help? *Otto

"Matthew Dyer" wrote in message

...



Could someone please give me a brief overview of how the 'on error'
code works? what different kinds of things can I do with it? Do I
place it before code that may return an error or after?- Hide quoted text -


- Show quoted text -


that acutally does help. I found a really good online tutorial for on
error coding written by chip pearson who you've probably seen around
these groups. I highly reccomend anyone who has any questions about on
error coding to check it out.
http://www.cpearson.com/excel/ErrorHandling.htm
 
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
CODING ERRor N.F[_2_] Excel Discussion (Misc queries) 1 June 27th 07 09:02 PM
VBA Coding Error sdg8481 Excel Programming 12 July 26th 06 04:05 AM
Help with coding error carlos Excel Programming 3 June 5th 06 11:42 AM
Error in VBA Coding in Macro Pooja Excel Programming 2 February 9th 06 04:07 PM
coding error tom mcdonald Excel Programming 2 June 16th 05 04:04 PM


All times are GMT +1. The time now is 03:10 AM.

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

About Us

"It's about Microsoft Excel"