« Formatting: Autofit Columns: VBA Excel | Main | Declare and populate a Dynamic Array: VBA Excel »
Friday
Jul202007

Count number of used Rows 2nd method: VBA Excel

    Range("A1", ActiveCell.SpecialCells(xlLastCell)).Select
    SomeIntegerVariable = Selection.Rows.Count

Reader Comments (2)

Nice one - _worksheet.usedrows.rows.count_ gave the wrong result for me, but this method worked.

Cheers

January 16, 2009 | Unregistered CommenterBison

Thank for your time to share us this discuss, i have some opinion on the <a href="http://www.dressaler.com/" title="Formal Dresses">Formal Dresses</a>, I feel so stronl about your article, and learning more on this topic, then it is so good, Do you have time visit us <a href="http://www.dressaler.com/wedding-party-dress/bridesmaid-dresses.html" title="Wedding Bridesmaid Dresses">Wedding Bridesmaid Dresses</a>.I will bookmark your blog and have my kids check up here frequently <a href="http://www.dressaler.com/wedding-party-dress/junior-bridesmaid-dresses.html" title="Junior Bridesmaid Dresses">Junior Bridesmaid Dresses</a>. I’m very certain they will understand lots of new stuff here than anybody else. I do appreciate that youve added relevant and intelligent commentary here though. Thank you!

January 5, 2012 | Unregistered CommenterFormal Dresses

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Textile formatting is allowed.