how to find workbook is having particular name worksheet using aspose.cells?
Hi,
Hi,
Please use the following code to find, if the particular sheet exists inside your workbook.
Please download and use the latest version:
Aspose.Cells
for .NET v7.0.4.6
C#
Workbook workbook = new Workbook(“c:\source.xlsx”);
string sheetName = “MySheet”;
Worksheet worksheet = workbook.Worksheets[sheetName];
if (worksheet == null)
{
//sheet does not exist
}
else
{
//sheet exists
}