In the process of running some reports the user may end up with 3 workbooks open.
I'm saving my active workbook fine and closing it with application.quit.
Sometimes the other files close if there were no changes, but if there were any changes a dialog box opens asking them if they want to save the file.
They have requested that the other files save and close also. Can I do this?
One of the files has a static name. The other file name changes each month (with a month number). I think I can capture that number out of the file if I need to.
I tried this:
Workbooks("MyFile.XLS").Close SaveChanges:=True
Application.Quit
But it closed & didn't save.
Thank you -
I'm saving my active workbook fine and closing it with application.quit.
Sometimes the other files close if there were no changes, but if there were any changes a dialog box opens asking them if they want to save the file.
They have requested that the other files save and close also. Can I do this?
One of the files has a static name. The other file name changes each month (with a month number). I think I can capture that number out of the file if I need to.
I tried this:
Workbooks("MyFile.XLS").Close SaveChanges:=True
Application.Quit
But it closed & didn't save.
Thank you -