Excel Macro Workbook Close Without Saving. If you want to close the workbook without saving changes, then Hi again Sarah, I don't know whether you have a button for closing the workbook, but if not and if you want to close the workbook and save the changes when the user clicks the Close Window cross on the top right of the screen. If we don't want to save any of the open files, then we can use the following macro.
Set the security settings for a workbook with macros.
I need it to open a workbook, run a macro, and close without saving.
My problem is that when the code hits the $excel.close() method, the file stays open, and prompts for saving changes. I don't know why it thinks there are changes, but what I want is to close the workbook without saving changes. Excel normally warns users who are attempting to However, many users may blow past the warning and inadvertently click No, telling Excel to close without saving.








