Jean
Jean

Reputation: 99

selection second row to current row excel vba

I am trying to find, how I can make the selection of rows.

I need make selection from second row to active cell row. Can you help me? Thx

Rows("2:ActiveCell.Row").Select

I try something like this one, but it´s not working.

Upvotes: 1

Views: 1587

Answers (1)

PaulFrancis
PaulFrancis

Reputation: 5819

You need to concatenate the Active cell. Try,

Rows("2:" & ActiveCell.Row).Select

Upvotes: 2

Related Questions