ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Saving when closing excel (https://www.excelbanter.com/excel-discussion-misc-queries/160818-saving-when-closing-excel.html)

welshmag

Saving when closing excel
 
Aaaaagghhh, please can someone help me??

Somethings happened to excel, when I close a workbook down by using the
cross in the top right hand corner, it doesn't automatically ask me if I want
to save. I have now lost quite a bit of work, I know I should have learnt my
lesson and save using the file menu, force of habit means I keep relying on
it asking me when I close though.

Please help.


FSt1

Saving when closing excel
 
hiput this in the thisworkbook before close module.
Private Sub Workbook_BeforeClose(Cancel As Boolean)
ActiveWorkbook.Save
End Sub

each time you close the file, excel will auto save.

Regards
FSt1

"welshmag" wrote:

Aaaaagghhh, please can someone help me??

Somethings happened to excel, when I close a workbook down by using the
cross in the top right hand corner, it doesn't automatically ask me if I want
to save. I have now lost quite a bit of work, I know I should have learnt my
lesson and save using the file menu, force of habit means I keep relying on
it asking me when I close though.

Please help.



All times are GMT +1. The time now is 02:23 AM.

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