Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How to disable save message when I click the cross to close the file

Dear all,
When I close a excel file by click the cross on the left
top corner, excel will prompt me to save the file or not. I want the
excel not to save the file and not to prompt me to save. How can I
disable the save message when I press the cross to close the excel
file?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default How to disable save message when I click the cross to close the file

Peter,
There is the Workbook_BeforeClose event:
ThisWorkbook.Saved=True

NickHK

"hon123456" wrote in message
ups.com...
Dear all,
When I close a excel file by click the cross on the left
top corner, excel will prompt me to save the file or not. I want the
excel not to save the file and not to prompt me to save. How can I
disable the save message when I press the cross to close the excel
file?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How to disable save message when I click the cross to close the file

Thanks NickHK

NickHK 寫道:

Peter,
There is the Workbook_BeforeClose event:
ThisWorkbook.Saved=True

NickHK

"hon123456" wrote in message
ups.com...
Dear all,
When I close a excel file by click the cross on the left
top corner, excel will prompt me to save the file or not. I want the
excel not to save the file and not to prompt me to save. How can I
disable the save message when I press the cross to close the excel
file?

Thanks.


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
Excel 2007: How do I disable the 'Do you wish to save changes to...' when I close an un changed file? anctech Excel Discussion (Misc queries) 4 June 15th 07 10:42 AM
Disable Auto save on Right Click Dvorakian Excel Discussion (Misc queries) 1 June 25th 06 12:34 PM
Disable option save when close excel Rui Alvares Excel Programming 2 March 15th 06 01:59 AM
Disable Macros --> Close File [email protected] Setting up and Configuration of Excel 3 August 24th 05 10:22 PM
Close Workbook without displaying message to Save Vinay[_2_] Excel Programming 2 June 10th 04 05:05 PM


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