Hello,
I am doing the following to rename a worksheet:
Worksheet workSheet = sheetReturns.SpreadsheetElement.Workbook.Sheets.Add(SheetType.Worksheet) as Worksheet;
workSheet.Name = "Missing Top 100";
dtProvider.Import(_missingTop100, workSheet);
sheetReturns.SpreadsheetElement.Workbook.ActiveWorksheet = workSheet;
workSheet.Columns[workSheet.UsedCellRange].AutoFitWidth();
The new name of the sheet does not show unless another worksheet is added or I double click on the worksheet tab.
How can I code this so the new name shows immediately?
Thanks,
Doug