Below is code to shut down (quit the excel instance) my project. There are two exit buttons to which the user can exit the project. One is within a form (modal) on a login screen. The other exit button is within a different form (modeless) within the project after login is achieved. The exit code from the modeless form closes the instance completely. Attempting to exit from the modal form closes the form, but the excel window remains open. The desire is for the excel instance to shut down completely. When I change the modal form to modeless, the excel instance shuts down properly. Why is this? What do I need to add to completely shut down the excel instance from a modal form using the below code?
Please Login or Register to view this content.
Bookmarks