Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quit without saving


Hi everybody,

How can I quit excel without saving changes in the concerned workbook,
and even without displaying the alert message that asks for saving
changes or not.

I hope that my question is cleard for all,

Thanx,


--
Jim333
------------------------------------------------------------------------
Jim333's Profile: http://www.excelforum.com/member.php...fo&userid=5186
View this thread: http://www.excelforum.com/showthread...hreadid=381121

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Quit without saving

ActiveWorkbook.Saved = True
That'll make Excel think it WAS saved, even though it wasn't. You need to
open the workbook, hit Alt+F11. Double-click ThisWorkbook under your
workbook's project, and hit the General dropdown and choose Workbook. On the
right, choose BeforeSave. Then paste the line above between the sub/endsub
lines. :)
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Jim333" wrote in
message ...

Hi everybody,

How can I quit excel without saving changes in the concerned workbook,
and even without displaying the alert message that asks for saving
changes or not.

I hope that my question is cleard for all,

Thanx,


--
Jim333
------------------------------------------------------------------------
Jim333's Profile:

http://www.excelforum.com/member.php...fo&userid=5186
View this thread: http://www.excelforum.com/showthread...hreadid=381121



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Quit without saving


Hi,

This code is good to save changes before quitting, while I don't want
to save changes made to the workbook,

I want to quit without saving changes and without displaying the
saveing alert.

Thank you


--
Jim333
------------------------------------------------------------------------
Jim333's Profile: http://www.excelforum.com/member.php...fo&userid=5186
View this thread: http://www.excelforum.com/showthread...hreadid=381121

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Quit without saving

Try to put

ActiveWorkbook.Saved = True
Application.Displayalerts = False

into the workbook's BeforeClose rutin!

Regards,
Stefi

€˛Jim333€¯ ezt Ć*rta:


Hi,

This code is good to save changes before quitting, while I don't want
to save changes made to the workbook,

I want to quit without saving changes and without displaying the
saveing alert.

Thank you


--
Jim333
------------------------------------------------------------------------
Jim333's Profile: http://www.excelforum.com/member.php...fo&userid=5186
View this thread: http://www.excelforum.com/showthread...hreadid=381121


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Quit without saving

ActiveWorkbook.Close SaveChanges:=False

--
Regards,
Tom Ogilvy


"Jim333" wrote in
message ...

Hi,

This code is good to save changes before quitting, while I don't want
to save changes made to the workbook,

I want to quit without saving changes and without displaying the
saveing alert.

Thank you


--
Jim333
------------------------------------------------------------------------
Jim333's Profile:

http://www.excelforum.com/member.php...fo&userid=5186
View this thread: http://www.excelforum.com/showthread...hreadid=381121



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
quit without saving option [email protected] Excel Programming 1 January 5th 05 03:38 PM
Quit Application Without Saving SunTzuComm Excel Programming 1 August 20th 04 06:15 PM
Quit Application Without Saving Frank Kabel Excel Programming 0 August 20th 04 05:43 PM
Application.quit yuiriy Excel Programming 4 June 10th 04 08:36 AM
Can't get Excel to quit Todd Waldron Excel Programming 10 November 22nd 03 03:19 PM


All times are GMT +1. The time now is 10:22 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"