Syncfusion.XlsIO.Base
Example 


Activate Method (ITabSheet)

Activates the sheet which is equivalent to clicking the sheet's tab.
Syntax
'Declaration
 
Sub Activate() 
'Usage
 
Dim instance As ITabSheet
 
instance.Activate()
void Activate()
Example
Following code illustrates how to activate a sheet.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workbook = application.Workbooks.Create(2);
ITabSheet sheet = workbook.Worksheets[1];
            
// Activates the sheet 
sheet.Activate();
            
workbook.SaveAs("Activate.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 16.4460.0.40

See Also