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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Last Row in Excel 1

Status
Not open for further replies.

RonRepp

Technical User
Feb 25, 2005
1,031
US
Hi all:

Is there an easy way to find the last row in Excel? I seem to remember reading it--it might have been in this forum, but I searched to no avail.

Anyway, I've always looped through to find the first empty cell, like this:

Code:
Do
  Activecell.Offset(1,0).Activate
  If Activecell.Text = "" then Exit Do
Loop

Any help will be greatly appreciated, as this takes forever with a large spreadsheet.

Thanks,



Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
There is at least 2 FAQs in this forum covering this subject.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
firefytr:

Thanks for taking the time to point me in the right direction.

Ron



Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.
 
No problem at all. :)

I would also recommending taking note of PHV's post, there are some very good FAQ's here. :)

Take care!

-----------
Regards,
Zack Barresse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top