How to select a row of excel using VSTO in VS 2005


Private Sub List1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)

Try

selectedrow = List1.SelectedIndex + 1

Globals.Sheet2.List1.Range.EntireRow().Select()

List1.Range.EntireRow(selectedrow).Select()

Catch ex As Exception

MsgBox(ex.ToString)

End Try

End Sub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: