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

Detect Last Row in Table

Status
Not open for further replies.

inf33323

Technical User
Apr 24, 2001
26
DE
Hi,

is there any method that retrieves the last row in a workbook?

Thanks in advance.
 
You can use:

ActiveCell.SpecialCells (xlCellTypeLastCell) or
ActiveCell.End (xlDown)
Store300

Store300@ftnetwork.com
 
To actually get the row number, you would need to do something like this:

Code:
ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top