L
Legacy 96851
Guest
Hopefully this is the right forum for this, I'd say it's more a discussion than a problem.
I was curious how necessary/encouraged error handling (i.e. the use of "On Error" statements) is in VBA. The fact is, after the past 3 weeks of nothing but Excel, I'm at the point where I know the syntax and can make my macros work with minimal assistance, but I'd like to clean them up a little bit. I'm currently in the process of rewriting a few from scratch, and started to think about error catches, which I almost never use.
When I code in Java, error handling is extremely encouraged (partially because it's in a classroom environment). However, I've mostly found little use for exceptions, as I tend to build a lot of adaptability into my code so it can deal with problems by its very nature (for instance, the strategic placement of conditional statements).
I guess this is almost an issue about programming in general, but I was just curious as to how everyone else deals with their errors in VBA, and how they prefer to see them dealt with.
I was curious how necessary/encouraged error handling (i.e. the use of "On Error" statements) is in VBA. The fact is, after the past 3 weeks of nothing but Excel, I'm at the point where I know the syntax and can make my macros work with minimal assistance, but I'd like to clean them up a little bit. I'm currently in the process of rewriting a few from scratch, and started to think about error catches, which I almost never use.
When I code in Java, error handling is extremely encouraged (partially because it's in a classroom environment). However, I've mostly found little use for exceptions, as I tend to build a lot of adaptability into my code so it can deal with problems by its very nature (for instance, the strategic placement of conditional statements).
I guess this is almost an issue about programming in general, but I was just curious as to how everyone else deals with their errors in VBA, and how they prefer to see them dealt with.