Drofidnas
Board Regular
- Joined
- Jun 30, 2004
- Messages
- 126
This is more of an annoyance than anything.
I have a form which generates an email and then quits Excel.
The macro to run the code is on a shape, linked to the code.
If I am out of a cell and anywhere on the worksheet it is fine.
But if I am "live" in a cell, ie. editing when the shape is clicked I get a Runtime Error 13.
Everything works, the form is saved, the email is generated but this nagging error comes up.
Debugging or Ending just quits which is what I want.
I know what is happening fundamentally, Excel is saying "I can't quit because you're editing, pal. Exit the **** cell!" just like when a dialog box is open you can't open another file.
a. Why might it be happening?
b. Can I stop/mitigate/obviate it?
I've tried all manner of error traps and Resume Nexts and turning off error messages and switching on and off Application.Displayalerts... it/s really annoying!
Thanks
Chris
I have a form which generates an email and then quits Excel.
The macro to run the code is on a shape, linked to the code.
If I am out of a cell and anywhere on the worksheet it is fine.
But if I am "live" in a cell, ie. editing when the shape is clicked I get a Runtime Error 13.
Everything works, the form is saved, the email is generated but this nagging error comes up.
Debugging or Ending just quits which is what I want.
I know what is happening fundamentally, Excel is saying "I can't quit because you're editing, pal. Exit the **** cell!" just like when a dialog box is open you can't open another file.
a. Why might it be happening?
b. Can I stop/mitigate/obviate it?
I've tried all manner of error traps and Resume Nexts and turning off error messages and switching on and off Application.Displayalerts... it/s really annoying!
Thanks
Chris