Florin Sabau
Florin Sabau

Reputation: 1075

Excel VSTO set selection

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

Upvotes: 3

Views: 2512

Answers (2)

NirMH
NirMH

Reputation: 4949

You can also use

currentCells.Activate();

Upvotes: 0

surfen
surfen

Reputation: 4692

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

Upvotes: 2

Related Questions