is there anyway of finding the number of the last row in excel without looping through first?
is there anyway of finding the number of the last row in excel without looping through first?
Last edited by beasty1711; Mar 19th, 2003 at 04:11 AM.
"...They even have the internet on computers..." :- Homer Simpson
"Second Place is First Looser" :- No Fear
Unless you are trying to find the very last row (which is probably empty) thois should work:
VB Code:
MaxRowNumber = ActiveSheet.Cells.SpecialCells(xlCellTypeLastCell).Row
You're welcome to rate this post!![]()
If your problem is solved, please use the Mark thread as resolved button
![]()
Wait, I'm too old to hurry!
perfect thanx
"...They even have the internet on computers..." :- Homer Simpson
"Second Place is First Looser" :- No Fear
No problem
please reedit the starting thread an put an [RESOLVED] in the topic!
Soory you already did that![]()
You're welcome to rate this post!![]()
If your problem is solved, please use the Mark thread as resolved button
![]()
Wait, I'm too old to hurry!