XLSM save file have disabled buttons

Jun 12, 2014 at 9:50 AM
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.

the following links show the two files.
https://drive.google.com/file/d/0B7EHvjiS0C8GYWdFSkFwZ3U4S28/edit?usp=sharing
https://drive.google.com/file/d/0B7EHvjiS0C8GUGtIbF84Mk1mZlk/edit?usp=sharing

the code used for opening and saving:
var workbook = new XLWorkbook("Supplier Cost Sheet Template v61.xlsm");
workbook.SaveAs("Book2.xlsm");
Coordinator
Jun 18, 2014 at 9:27 PM
Pick up the latest source code and try again because I can open and save the file no problem and the output file opens fine in Excel.

The corrupted one you shared is indeed bad though. I just can't reproduce it.