BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Mike,
Thank you for using Syncfusion products.
Name of the worksheets can be accessed by accessing the worksheets or tabsheets collection as referred in the below code snippet.
Code Snippet:
//Access
worksheet name using index of the worksheet string sheetName = workbook.Worksheets[0].Name; //Access
worksheet name using tab sheet index string worksheetName = ((IWorksheet)workbook.TabSheets[0]).Name; |
Please let us know if you need any clarification.
Regards,
Sudha R
worksheet.Name = "New Name";
var newworksheet = workbook.Worksheets.AddCopy(worksheet);
workbook.TabSheets[newworksheet .TabIndex].Name = worksheet.Name;
I'm having a similar problem. I try to change the name of the worksheet but when I save the workbook and open it with Office the names are Sheet2 Sheet3 and so on.
worksheet.Name = "New Name"; worksheet.Range["A1"].Text = "SourceWorksheet"; var newworksheet = workbook.Worksheets.AddCopy(worksheet); workbook.TabSheets[newworksheet.TabIndex].Name = "CopiedWorksheet"; |