I just want the workbook to close, with asking if I want to save file, when I click the close (X) button.
I had it working previously. It seems this quit working after I recently added some code to create a PDF of a sheet and then email it.
Here's the code I was using that worked for a long time.
This code is in the ThisWorkbook module.Please Login or Register to view this content.
Bookmarks