Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default save changes on close using vba

Hi All,

How can i programmatically save all changes made in a workbook, such that MS
Excel doesn't prompt the user before they close the workbook?

--
Carlee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default save changes on close using vba

hi
in a thisworkbook module, paste this.
Private Sub Workbook_BeforeClose(Cancel As Boolean)
ActiveWorkbook.Save
End Sub
everytime someone closes the file excel will save it whether it needs saving
or not.

regards
FSt1

"Carlee" wrote:

Hi All,

How can i programmatically save all changes made in a workbook, such that MS
Excel doesn't prompt the user before they close the workbook?

--
Carlee

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
Vba - Save but don't close Sandy Excel Worksheet Functions 4 April 4th 23 10:38 AM
Save/Close All M Scott Excel Discussion (Misc queries) 1 February 6th 07 01:12 AM
To save and close Steved Excel Worksheet Functions 5 July 27th 05 12:17 AM
Save and Close Pop Up Box...After Save and Close In VBA Celtic_Avenger[_47_] Excel Programming 0 October 11th 04 05:46 AM
Close without save Jesse[_5_] Excel Programming 3 May 7th 04 12:03 AM


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

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

About Us

"It's about Microsoft Excel"