This project has moved and is read-only. For the latest updates, please go here.
1

Closed

SaveAs changes existing format in excel sheets

description

I have already excel template which has already inserted with some formulas and formats to the cells.

This excel will open using application and saves necessary changes to sheets. and save the excel using saveas method.

wb = new XLWorkbook(FileName);


wb.CalculateMode = XLCalculateMode.Auto;
wb.SaveAs(FileName);

After saving, the excel formats are getting changed completely and calculations are going wrong. Percentage columns are changing to Date format. How can I proceed here by saving excel without changing existing formats. attached correct and incorrect excel.

Regards

file attachments

Closed Nov 11, 2016 at 9:48 AM by igitur
Please log at http://github.com/ClosedXML/ClosedXML if this is still an issue.

comments