Syncfusion.XlsIO.Base
Example 


Activate() Method

Activates the cell.
Syntax
'Declaration
 
Overloads Function Activate() As IRange
'Usage
 
Dim instance As IRange
Dim value As IRange
 
value = instance.Activate()
IRange Activate()

Return Value

Returns the active cell.
Example
The following code illustrates how to activate a Range.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workbook = application.Workbooks.Create(1);
IWorksheet worksheet = workbook.Worksheets[0];
            
// Activates 'F1' cell.
worksheet.Range["F1"].Activate();
            
workbook.SaveAs("Activate.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 17.1460.0.32

See Also