G'day there Cheesey_toastie,
[This followup was posted to microsoft.public.excel.programming and a
copy was sent to the cited author.]
The offending goto would have opened the VBE at the function then then
next Goto statement, of which there were many (again remember this
wasn't my coding!) masked the problem!
...what? And you didn't know instinctively what the programmer was
doing? <g>. I see what you're getting at. You'd have been in the
offending function without knowing from where it would have been called.
Couldn't you just guess, write some arbitrary lines of code and hope
like shit that it worked? =)
So stepping through the code I should have noticed the cursor jump BUT
I didnt know where to start looking as when I entered the VBE password
to debug it worked normally!!! This is why I immediately thought it
was an Excel bug.
Aaahhhh... what a pain that would be!!
Mind you, nearly all of the difficult to track problems that I've
had were of my own making. Now that is a REAL pain, because you can't
blame anybody else. I usually try to blame Microsoft and many would like
to believe me. However those that know the extent of my programming
skills just laugh and walk away. You can never get any sympathy when you
stuff it up yourself.
A total bugger to track down!
I can see why. I'm glad that you found it eventually. Lots of
coffee consumed in the process I'd imagine.
See ya
Ken McLennan
Qld Australia