Excel VSTO selection

How to set the selection of the active sheet to a specific range using C # and VSTO 2008?

+2


source to share


2 answers


Range currentCells = activeSheet.get_Range("A1", "E1"); 
currentCells.Select();

      



+1


source


You can also use



currentCells.Activate();

      

0


source







All Articles