ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Auto save and close (https://www.excelbanter.com/excel-worksheet-functions/248870-auto-save-close.html)

Frank

Auto save and close
 
Hi,
I have been using a simple Macro to save and close a workbook in Excel 2003
without problems.
Sub cs()
'
' Rem: Saves & closes sheet.

ActiveWorkbook.Save
ActiveWorkbook.Close

End Sub

After changing to Excel 2007 this Macro closes Excel after closing the
workbook and I have tried various options to stop this without success. If I
select and run the macro from the drop-down box it works, but when assigned
to an auto shape it does not. Has anyone got an answer to this?
Frank.



All times are GMT +1. The time now is 05:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com