Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 358
Default Can we make Excel close itself without asking anything?

Hello, friends,

An Excel app was launched and a .xls file was opened using
Miscrosoft.Office.Interop.Excel. When I tried to close Excel using
Excel.Quit(), there was an Excel message box popped up, asking if one wants
to save the changes in the opened .xls file?

Can we get rid of this message and make Excel just close itself without
asking anything, event when a user does make some changes?

Thanks a lot for your help.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Can we make Excel close itself without asking anything?

Andrew,

Before the Excel.Quit, with the xls file (referred to here as "MyFile"):

MyFile.Close SaveChanges:=False

hth,

Doug

"Andrew" wrote in message
...
Hello, friends,

An Excel app was launched and a .xls file was opened using
Miscrosoft.Office.Interop.Excel. When I tried to close Excel using
Excel.Quit(), there was an Excel message box popped up, asking if one
wants
to save the changes in the opened .xls file?

Can we get rid of this message and make Excel just close itself without
asking anything, event when a user does make some changes?

Thanks a lot for your help.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Can we make Excel close itself without asking anything?

Application.DisplayAlerts = False

make sure you turn it back on at the Workbook_Open or else you'll never get
error messages again in that file.

HTH

"Andrew" wrote:

Hello, friends,

An Excel app was launched and a .xls file was opened using
Miscrosoft.Office.Interop.Excel. When I tried to close Excel using
Excel.Quit(), there was an Excel message box popped up, asking if one wants
to save the changes in the opened .xls file?

Can we get rid of this message and make Excel just close itself without
asking anything, event when a user does make some changes?

Thanks a lot for your help.


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
why do all excel worksheets/workbooks close when I close one? Penny Excel Discussion (Misc queries) 1 November 29th 06 03:49 AM
Not close thead when I close excel wakeup[_3_] Excel Programming 0 December 5th 05 08:57 AM
Macro to make excel close grandfilth Excel Programming 5 October 20th 05 05:20 PM
Excel shoud not close all active books when clicking close button technomike Excel Discussion (Misc queries) 0 June 10th 05 05:35 PM
excel - Windows close button (x) should only close active workboo. CoffeeAdict Setting up and Configuration of Excel 3 February 8th 05 04:30 AM


All times are GMT +1. The time now is 09:08 PM.

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"