Created
May 30, 2024 10:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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