HighTechTalks DotNet Forums  

how to quit excel wihtout saving

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss how to quit excel wihtout saving in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
GS
 
Posts: n/a

Default how to quit excel wihtout saving - 06-16-2007 , 05:29 PM






how to quit excel without saving and suppress the prompt?

I am suing excel application for some intermediate work but don't want to
save the result in excel



Reply With Quote
  #2  
Old   
SvenC
 
Posts: n/a

Default Re: how to quit excel wihtout saving - 06-18-2007 , 07:44 AM






Hi,

Quote:
how to quit excel without saving and suppress the prompt?

I am suing excel application for some intermediate work but don't
want to save the result in excel
Set the Saved property of all open Workbooks to True.

--
SvenC


Reply With Quote
  #3  
Old   
GS
 
Posts: n/a

Default Re: how to quit excel without saving - 06-18-2007 , 05:52 PM



thank you very much,
I guess the key is **all** the work books. I only marked the workbooks I
added

thank you

btw I resort to
oBook.Saved = True ' not needed if xlApp_WorkbookBeforeClose is in
place


oExcel.PromptForSummaryInfo = False
oExcel.Application.DisplayAlerts = False
to avoid being prompting

I suspect I still missed a workbook someplace "the only workbook I can find
is actually in the line
oExcel.Workbooks.Add
but that dos not have the property Saved for oExec.Workbooks.


"SvenC" <SvenC (AT) community (DOT) nospam> wrote

Quote:
Hi,

how to quit excel without saving and suppress the prompt?

I am suing excel application for some intermediate work but don't
want to save the result in excel

Set the Saved property of all open Workbooks to True.

--
SvenC



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.