ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving Forms (https://www.excelbanter.com/excel-programming/383789-saving-forms.html)

kirkm[_6_]

Saving Forms
 

Could some explain how, through code, you "Save" the sheet when you
close a Form, so you don't get the message, "Are you sure
you want to save changes..." when you close the workbook ?

Many thanks - Kirk

Charles Chickering

Saving Forms
 
In the code that you use to close the form place this line:
ActiveWorkbook.Save

Note that this save (as it implies) the "Active" workbook, if you want to
save the workbook that the macro is written in, use ThisWorkbook.Save
--
Charles Chickering

"A good example is twice the value of good advice."


"kirkm" wrote:


Could some explain how, through code, you "Save" the sheet when you
close a Form, so you don't get the message, "Are you sure
you want to save changes..." when you close the workbook ?

Many thanks - Kirk


kirkm[_6_]

Saving Forms
 
On Thu, 22 Feb 2007 18:23:10 -0800, Charles Chickering
wrote:

In the code that you use to close the form place this line:
ActiveWorkbook.Save


Many thanks, Kirk


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

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