Using Excel 2007
I have a complex application written in vba where I would like the user to close from a button on the main dashboard. However, every time this button is pressed, excel crashes, displaying an error box:
"Microsoft Office Excel has encountered a problem and needs to close..."
I began stripping pieces from my VBA project and spreasheet one by one (userforms, controls, formatting) until literally the only thing I had left was a blank sheet with the button linked to a simple macro:
Still, excel would crash when clicking the button. Interestingly enough, when I would run the macro manually, without using the button, it worked without a hiccup. Indeed, when I went back to my original program with all of the code intact, running the macro from inside VBA did not result in a crash.Please Login or Register to view this content.
What's wrong here?
Thanks.
Bookmarks