Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 On Error Resume Next doesn't work for me

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 2003 On Error Resume Next doesn't work for me

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.

--
Regards,
Tom Ogilvy


"Leadee" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 On Error Resume Next doesn't work for me

Thank you for the info. So what is the solution to work with non-trapple
errors?

"Tom Ogilvy" wrote:

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.

--
Regards,
Tom Ogilvy


"Leadee" wrote in message
...
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?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 2003 On Error Resume Next doesn't work for me

Avoid the error.

--
Regards,
Tom Ogilvy

"Leadee" wrote in message
...
Thank you for the info. So what is the solution to work with non-trapple
errors?

"Tom Ogilvy" wrote:

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.

--
Regards,
Tom Ogilvy


"Leadee" wrote in message
...
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?





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel 2003 On Error Resume Next doesn't work for me

Avoid the error.

Very well put.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Tom Ogilvy" wrote in message
...
Avoid the error.

--
Regards,
Tom Ogilvy

"Leadee" wrote in message
...
Thank you for the info. So what is the solution to work with
non-trapple
errors?

"Tom Ogilvy" wrote:

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.

--
Regards,
Tom Ogilvy


"Leadee" wrote in message
...
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?









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 On Error Resume Next doesn't work for me

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.

"Tom Ogilvy" wrote:

Avoid the error.

--
Regards,
Tom Ogilvy

"Leadee" wrote in message
...
Thank you for the info. So what is the solution to work with non-trapple
errors?

"Tom Ogilvy" wrote:

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.

--
Regards,
Tom Ogilvy


"Leadee" wrote in message
...
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?






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 On Error Resume Next doesn't work for me

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" wrote:

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.

"Tom Ogilvy" wrote:

Avoid the error.

--
Regards,
Tom Ogilvy

"Leadee" wrote in message
...
Thank you for the info. So what is the solution to work with non-trapple
errors?

"Tom Ogilvy" wrote:

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.

--
Regards,
Tom Ogilvy


"Leadee" wrote in message
...
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?






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
Resume Next doesn't work in IsOpen function Rob Excel Programming 6 June 4th 04 08:18 PM
On Error Resume Next Jim Sharrock Excel Programming 2 May 13th 04 03:12 PM
ON ERROR RESUME NEXT D.S.[_3_] Excel Programming 7 December 1st 03 09:40 AM
On Error Resume Next D.S.[_3_] Excel Programming 1 November 28th 03 04:52 PM
On Error Resume Next Mike[_58_] Excel Programming 3 November 23rd 03 05:09 PM


All times are GMT +1. The time now is 12:50 PM.

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"