Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save openize-cells-gists/9ac13f662a11bc10aee1a88c34614e99 to your computer and use it in GitHub Desktop.
Save openize-cells-gists/9ac13f662a11bc10aee1a88c34614e99 to your computer and use it in GitHub Desktop.
This C# example showcases how to rename a MS Excel worksheet in C# using Openize.Cells SDK
using Openize.Cells
string filePath = "Z:\\Downloads\\testFile1.xlsx";
string existingSheetName = "TestSheet";
string newSheetName = "RenameSheetName";
// Load the workbook from the specified file path
using (Workbook wb = new Workbook(filePath))
{
wb.RenameSheet(existingSheetName, newSheetName);
wb.Save(filePath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment