G
Guest
Guest
I have a summary Workbook with code in it that, in sequence, opens 20 subsidiary Workbooks, copies data from each to a sheet in the summary Workbook, and then closes each of the subsidiary Workbooks. The last line in each section of the code, to close that particular subsidiary Workbook is "ActiveWindow.Close"
My problem is that, when the code reaches this point, a message box appears, asking me if I "want to save the changes you made to"'filename.xls'?" and I have to click on "No" 20 times. I could change the code to "ActiveWorkbook.Save" and it would eliminate the clicking, but it would take an extra minute or two to run the full macro, and this is on a workbook that I open at least 5 times a day.
My question is: Is there any code to close the subsidiary workbook without saving it, and without having to click in each message box?
My problem is that, when the code reaches this point, a message box appears, asking me if I "want to save the changes you made to"'filename.xls'?" and I have to click on "No" 20 times. I could change the code to "ActiveWorkbook.Save" and it would eliminate the clicking, but it would take an extra minute or two to run the full macro, and this is on a workbook that I open at least 5 times a day.
My question is: Is there any code to close the subsidiary workbook without saving it, and without having to click in each message box?