Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow saving when adding VBA forms [email protected] Excel Discussion (Misc queries) 2 October 11th 06 10:44 AM
Excel forms - authorise / deny forms Ian Manning Excel Programming 1 May 8th 06 05:03 PM
saving and loading contents of user forms bennyob Excel Discussion (Misc queries) 0 November 7th 05 02:05 PM
Calling Forms from Forms - Exit problems Stuart[_5_] Excel Programming 3 May 25th 04 06:50 AM
saving information entered onto forms Frances[_2_] Excel Programming 1 October 10th 03 02:10 AM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"