Hi,
I am not sure if this is a bug or expected behaviour:
var workbook = new Workbook();
Worksheet newSheet = workbook.Worksheets[workbook.Worksheets.Add()];
newSheet.IsSelected = true;
workbook.Save(“Selected.xlsx”);
In this case, if you open the output file both Sheet1 and Sheet2 are active and are bold.
This is also reflected in the code as setting newSheet to selected does not set the first sheet’s IsSelected property to false.
Is this expected behaviour?
Best regards.