I'm using Closed XML for .Net 4.0 with Macro Enabled Excel, In the sheet I have some buttons, these buttons attached to macros, after opening and then saving the document using closed XML it get corrupted.
Steps:
1- Run an application that opens the xlsm sheet and saving it using the code below:
var workbook = new XLWorkbook("original.xlsm");
workbook.SaveAs("cotrrpted after save.xlsm");
2- Open the save document sand then save it using Excel.
3- when try to open the document again it shows an error.
You can find the orignal and result files in the followig link or you can find them attached
https://drive.google.com/file/d/0B7EHvjiS0C8GYWdFSkFwZ3U4S28/edit?usp=sharing
https://drive.google.com/file/d/0B7EHvjiS0C8GUGtIbF84Mk1mZlk/edit?usp=sharing
I attached the files for preview
Steps:
1- Run an application that opens the xlsm sheet and saving it using the code below:
var workbook = new XLWorkbook("original.xlsm");
workbook.SaveAs("cotrrpted after save.xlsm");
2- Open the save document sand then save it using Excel.
3- when try to open the document again it shows an error.
You can find the orignal and result files in the followig link or you can find them attached
https://drive.google.com/file/d/0B7EHvjiS0C8GYWdFSkFwZ3U4S28/edit?usp=sharing
https://drive.google.com/file/d/0B7EHvjiS0C8GUGtIbF84Mk1mZlk/edit?usp=sharing
I attached the files for preview