vpager
11-12-2008, 05:50 AM
I am invariably faced with an annoying problem as follows:
Having typed in a piece of code, I run my vba app. If the code breaks, possibly due to syntax, etc., I am presented with the error report dialog asking if I want to End or Debug.
When I click Debug, the offending line is highlighted as usual but everything is locked. I can't move the active line indicator to another line or add a break point or anything.
The only thing I can do is let the code continue (F5 or F8), which simply displays the dialog again.
But then if I click End, the whole Excel application closes.
Obviusly, if I don't want to lose the new code I've added, then it's up to me to make sure I save before running.
But the applicaiton shouldn't be locking up like this and closing when I end the code on a code error break.
Any suggesitons?
Having typed in a piece of code, I run my vba app. If the code breaks, possibly due to syntax, etc., I am presented with the error report dialog asking if I want to End or Debug.
When I click Debug, the offending line is highlighted as usual but everything is locked. I can't move the active line indicator to another line or add a break point or anything.
The only thing I can do is let the code continue (F5 or F8), which simply displays the dialog again.
But then if I click End, the whole Excel application closes.
Obviusly, if I don't want to lose the new code I've added, then it's up to me to make sure I save before running.
But the applicaiton shouldn't be locking up like this and closing when I end the code on a code error break.
Any suggesitons?