Counting rows in a range object?

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Counting rows in a range object?

  1. #1
    Board Regular Err's Avatar
    Join Date
    Nov 2006
    Location
    Boston, MA
    Posts
    274
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Counting rows in a range object?

     
    Does anyone have a quick function that is passed a range and returns the number of rows in it?

    I could use one to analyze and to (count rows).


    Thanks,

    Eric

  2. #2
    MrExcel MVP
    Moderator
    Scott Huish's Avatar
    Join Date
    Mar 2004
    Location
    Oregon
    Posts
    19,225
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default

    How about something like this?


    Code:
    Sub test()
    MsgBox Range("A2:A592").Rows.Count
    End Sub
    Office 2010/365

  3. #3
    Board Regular Err's Avatar
    Join Date
    Nov 2006
    Location
    Boston, MA
    Posts
    274
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    See, I knew it was easy.

    thanks

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com