Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the current row number in Excel

Status
Not open for further replies.

strangeBrew12

Programmer
Apr 5, 2006
18
US
I know this is simple, but I am drawing a blank this morning. What is the syntax to get the current row. I want to put this value into a variable as I am doing quite a bit of data parsing.

intRow = ????

Thanks

JJ
 
in Excel itself,

=row()

If you are in VBA,

intRow = ActiveCell.Row


[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top