Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Resume Next doesn't work in IsOpen function | Excel Programming | |||
On Error Resume Next | Excel Programming | |||
ON ERROR RESUME NEXT | Excel Programming | |||
On Error Resume Next | Excel Programming | |||
On Error Resume Next | Excel Programming |