I have an open userform. I don't want it's users to exit the form by instinctively clicking the red top right corner X (I do have a preferred exit button) as this, combined with closing the workbook itself incorrectly may result in data loss.\
I was hoping I could use code to purpose it's function to save the workbook before closing the form, that way the workbook will be saved on closing the userform accidently by the red X.
Here is the code I researched but I can't seem to get it to work. The code is never triggered to be executed.
Please Login or Register to view this content.
Bookmarks