ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   OpenXML - Excel - How to close without saving (https://www.excelbanter.com/excel-programming/437513-openxml-excel-how-close-without-saving.html)

Richard

OpenXML - Excel - How to close without saving
 
Hi,

I don't see in the documentation any way to close the Excel document without
saving the changes.

I mean, all the parts have a Save() method, and the SpreadSheet part has a
Close() method which also saves. How can the Excel document file be closed
without saving? Like in case there's an exception, and we need to cleanup and
close the file w/o saving.

Thanks in advance,

Richard



All times are GMT +1. The time now is 01:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com