hatman
Well-known Member
- Joined
- Apr 8, 2005
- Messages
- 2,664
It seems counterintuitive, but the following code:
Actually displays the error message that would be expected if the error handler hadn't been suppressed. Has anyone seen this? I have at least a dozen computers that have suddenly started exhibitting this behaviour, after installing an Addin that I helped a co-worker develope. Well, I gave him a little guidance and a little bit of code... he's at least as good as me with a slightly different focus.
What's worse, even after uninstalling his addin and restarting Excel, the problem doesn;t go away. It is wreaking all kinds of havoc with people who are trying to use one of MY addins that is doing a lot of things like the following:
It's blowing right through until it pops up the With or Object Variable Not Set (or whatever the exact error message says). It shouldn't. I don't get it, and I am not really sure where to start. I could use some big guns on this, please.
Code:
Sub stuff()
Dim a As Range
Dim b As Variant
On Error Resume Next
b = a.Address
End Sub
Actually displays the error message that would be expected if the error handler hadn't been suppressed. Has anyone seen this? I have at least a dozen computers that have suddenly started exhibitting this behaviour, after installing an Addin that I helped a co-worker develope. Well, I gave him a little guidance and a little bit of code... he's at least as good as me with a slightly different focus.
What's worse, even after uninstalling his addin and restarting Excel, the problem doesn;t go away. It is wreaking all kinds of havoc with people who are trying to use one of MY addins that is doing a lot of things like the following:
Code:
set object = nothing
on error resume next
set object = rnge.find "text"
on error goto 0
if not object is nothing then
...
It's blowing right through until it pops up the With or Object Variable Not Set (or whatever the exact error message says). It shouldn't. I don't get it, and I am not really sure where to start. I could use some big guns on this, please.