Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel VSTO set selection

How do I set the selection in the active worksheet to a specific Range, using C# and VSTO 2008?

like image 607
Florin Sabau Avatar asked Sep 13 '26 15:09

Florin Sabau


1 Answers

Range currentCells = activeSheet.get_Range("A1", "E1"); 
currentCells.Select();
like image 171
surfen Avatar answered Sep 16 '26 03:09

surfen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!