Excel 2003 On Error Resume Next doesn't work for me

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I just migrated all of my apps from Excel 2000 to Excel 2003. Now the VBA
code fails whereever I had an On Error Resume Next statement. It's as if that
statement is being ignored. My current error is a MAPI_E_NOT_FOUND error,
which is triggering a run time error even though I have an on error resume
next line above it. Any ideas as to how to trap this error in Excel 2003?
 
On Error Resume Next only works with Trappable errors. I suspect, that if
it isn't working, then you are getting an error that is not trappable.
 
Thank you for the info. So what is the solution to work with non-trapple
errors?
 
Unfortunately, I can't avoid the error. It is based on whether or not someone
has entered a Custom Attribute field value into the user's outlook profile on
the Exchange server. Since we're talking about potential human error, it is
something I must attempt to trap. If I could test for a null value, that
would be wonderful, but that also produces a run time error. I may be SOL and
just hope that the person entering the values doesn't miss one. With hundreds
of users, this is very likely though. Thanks for your suggestions.
 
Also, this does not change the issue whereby my "on error resume next"
statements worked with most other errors in Excel 2000, but not in Excel
2003. That is a somewhat separate issue, but begs an answer just the same.
 
Leadee said:
Also, this does not change the issue whereby my "on error resume next"
statements worked with most other errors in Excel 2000, but not in Excel
2003. That is a somewhat separate issue, but begs an answer just the same.

Select Tools/Options/General from the VBE menu and make sure the Break
on All Errors option isn't selected.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* Unsolicited e-mail replies will be ignored *
 
Break on All Errors option seems to be the default in Excel 2003, and I did
have it set that way. Setting it to a lower setting didn't fix my CDO error
mis-handling (because it seems to be a non-handled error), but it DID fix the
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top