Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fileformat-cells-gists/971bbfd1a93d1ec11902cbeaf05b1c8d to your computer and use it in GitHub Desktop.
Save fileformat-cells-gists/971bbfd1a93d1ec11902cbeaf05b1c8d to your computer and use it in GitHub Desktop.
This C# example showcases how to set visibility within a MS Excel worksheet in C# using Openize.Cells
using FileFormat.Cells
string filePath = "Z:\\Downloads\\testFile1.xlsx";
string sheetName = "TestSheet";
// Load the workbook from the specified file path
using (Workbook wb = new Workbook(filePath))
{
wb.SetSheetVisibility(sheetName, SheetVisibility.Hidden);
wb.Save(filePath);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment