trying to find last row

J

Jase

I am doing a search for the last row with data in my sheet using :
"Cells.SpecialCells(xlCellTypeLastCell).Row"
and i only have data going to row 142 but it tells me that the last row
with data is 345. Any ideas?

thanks,

Jase
 
R

Rick Rothstein

I use this to find the last "in use" cell on the worksheet (change
ActiveSheet to a specific worksheet name if your code is not working on the
active sheet)...

LastUsedRow = ActiveSheet.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious).Row
 

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