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

How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Exit with out saving

ThisWorkbook.Saved = True
Application.Quit

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Greg" wrote in message
...
How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Exit with out saving

Thanks Bob works great

Greg
"Bob Phillips" wrote in message
...
ThisWorkbook.Saved = True
Application.Quit

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Greg" wrote in message
...
How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Exit with out saving

ActiveWorkbook.Close False ' False here means do not save changes
Application.Quit
--
- K Dales


"Greg" wrote:

How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg



  #5   Report Post  
Posted to microsoft.public.excel.programming
MDW MDW is offline
external usenet poster
 
Posts: 117
Default Exit with out saving

Application.DisplayAlerts = False
Application.Quit

If DisplayAlerts is False, Excel will not prompt you to save any unsaved
data, nor will it actually save anything.

--
Hmm...they have the Internet on COMPUTERS now!


"Greg" wrote:

How do I get excel to use the application.quit function
without wanting to save before exit

Thanks

Greg





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
Automaticly saving formula's to values when saving Gunti Excel Discussion (Misc queries) 8 November 11th 08 09:34 AM
Exit a worksheet with out saving changes Sherry Excel Discussion (Misc queries) 2 October 24th 08 05:26 PM
Saving Procdb.xla on exit from Excel JD Excel Programming 3 June 2nd 04 04:52 PM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM
If a called sub exit, how to the caller exit right away? luvgreen[_4_] Excel Programming 4 February 24th 04 05:06 PM


All times are GMT +1. The time now is 03:18 AM.

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"