Hello. What does this rows.count expression do?![]()
Please Login or Register to view this content.
Hello. What does this rows.count expression do?![]()
Please Login or Register to view this content.
Rows.count returns the total number of rows in Excel. So excel 2003 and earlier will return 65536 and 2007 version onwards will return 1048576.
And here code is selecting the next available row at bottom of column A.. . it is something like you go to a1048576 and press ctrl + up arrow and then you can move one cell down
Regards,
DILIPandey
<click on below * if this helps>
Last edited by dilipandey; 06-24-2013 at 12:14 PM. Reason: explanation corrected
DILIPandey, Excel rMVP
+919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com
press ctrl + up arrow
will not work if you have blank rows in-between.
I guess it will travel through all blank rows and stop as soon as it touches any date available at up side.
Regards,
DILIPandey
<click on below * if this helps>
I have got data with 16000 rows and my last row is 16000, but If I insert a blank row in row 3, the arrow will stop in row 3.
I mean CRTL+shift +down
You have 16000 rows and then OP's code will select a16001 as I said it is something like pressing ctrl + up arrow from cell A1048576
I did not mentioned "ctrl + shift + down" as myself & OP's code both saying moving towards up side and I believe "ctrl + shift + down" will move the selected range downwards. Hope we are on same page
Regards,
DILIPandey
<click on below * if this helps>
DILIPandey,
Hope we are on same page.
Yes we are.
cheers my friend ... thanks.
Regards,
DILIPandey
<click on below * if this helps>
Hi, dilipandey,
AFAIR Excel95 and earlier only featured 2^14 rows (16,384), from 97 to 2003 2^16 like stated, from 2007 on 2^20.So excel 2003 and earlier will return 65536.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
I don't understand...This won't work if there are blank rows? It should work because it's looking for last row with data after going to the bottom of the sheet.
Amartino44,
I was trying to make this point:
Some people equate finding a last row with the key function of CTRL+shift+ down arrow key.
Last edited by AB33; 06-24-2013 at 01:01 PM.
Thanks HaHoBe for sharing the knowledge
Regards,
DILIPandey
<click on below * if this helps>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks