How to focus a cell in Excel VSTO using C#?
How to select first cell using C# in VSTO?
Please help with code...
How to focus a cell in Excel VSTO using C#?
How to select first cell using C# in VSTO?
Please help with code...
Here is one way:
Excel.Worksheet activeSheet = ThisAddIn.ExcelApplication.ActiveSheet;
var range = activeSheet.get_Range("A1", "A1");
range.Select();
ThisAddIn is the name of my test project.