How do I get a cell's row number

M

Mattias

Hello all!

I have a rather simple question. I need to know a cell's
row number and put it in a variable.

Best Regards
Mattias
 
P

Patruck Molloy

Dim CellRow as Long
CellRow = Selection.Row

'OR'

CellRow= ActiveCell.Row

To see more, in the IDE step into the proc, open a
watchwindow (View/Watch Window) and drag ActiveCell into
it. In the watch window, click on the '+' and you'll see
more of the available properies

Patrick Molloy
Microsoft Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top