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!

Difference in finding last row

Status
Not open for further replies.

alwayslrN

IS-IT--Management
Jun 20, 2006
159
US
Can someone explain the difference between these two?

Code:
LastRow = Cells(Cells.Rows.Count, "b").End(xlUp).Offset(1).Row

and

Code:
LastRow = Cells(Cells.Rows.Count, "b").End(xlUp).Row

Is it where the number of cells in the row with data starts?

Thanks
 
For me, the first expression gives a free row while the second gives the last populated.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top