I have a working macro that opens a workbook, does some stuff, and then closes it. But, when I run the macro, it prompts me as to whether or not I want to save changes. Is there a way I can write into the macro not to save the changes?
Currently the code I'm using to close the workbook is the following:
Windows("MTAP.xls").Activate
ActiveWindow.Close
If you know better code, and also a way to tell it not to save changes, I'd be very appreciative!
Currently the code I'm using to close the workbook is the following:
Windows("MTAP.xls").Activate
ActiveWindow.Close
If you know better code, and also a way to tell it not to save changes, I'd be very appreciative!