So this is my code
```
using (var document = new XLWorkbook(root + outFolder + copied))
{
var sheet = document.Worksheets.First();
var allRows = sheet.Rows();
foreach (var currentRow in allRows)
{
var allCells = currentRow.Cells();
foreach (var cell in allCells)
{
var cVal = cell.Value.ToString();
if (dict.ContainsKey(cVal))
{
cell.Value = dict[cVal];
}
}
}
document.SaveAs(root + outFolder + copied);
}
```
This is how the Excel file looked before editing with ClosedXML: http://i.imgur.com/jjBWsUJ.png
This is how it looks after: http://i.imgur.com/qH8DrhO.png
As you can see, there are a bunch of styles it isn't saving. OpenXML does not do this.
Comments: The styles in the first and second images look the same to me - could you be more specific about which styles are not being saved?
```
using (var document = new XLWorkbook(root + outFolder + copied))
{
var sheet = document.Worksheets.First();
var allRows = sheet.Rows();
foreach (var currentRow in allRows)
{
var allCells = currentRow.Cells();
foreach (var cell in allCells)
{
var cVal = cell.Value.ToString();
if (dict.ContainsKey(cVal))
{
cell.Value = dict[cVal];
}
}
}
document.SaveAs(root + outFolder + copied);
}
```
This is how the Excel file looked before editing with ClosedXML: http://i.imgur.com/jjBWsUJ.png
This is how it looks after: http://i.imgur.com/qH8DrhO.png
As you can see, there are a bunch of styles it isn't saving. OpenXML does not do this.
Comments: The styles in the first and second images look the same to me - could you be more specific about which styles are not being saved?