+ Reply to Thread
Results 1 to 2 of 2

Counted used rows in a range

Hybrid View

J047 Counted used rows in a range 11-10-2008, 04:48 AM
Bob Phillips There are many ways, and the... 11-10-2008, 05:34 AM
  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    London
    Posts
    1

    Counted used rows in a range

    Hello everyone,

    I'm brand new at vba and trying to sort out

    I have a number of table (up to 35) in a spreadsheet - one below the other and I need to convert them into chart. My problem is that they don't have the same number of used rows - It varies from 6 to 23.

    Could someone help my find a way to count the used row in a specific range?
    I need to store that number as a variable and insert it in my loop.
    So far all I've been able to do is count the number of used rows in a spreadsheet...

    Thanks a lot,

    J

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    There are many ways, and the 'correct' way will depened upon exactly wht you want and hoe the dat is organised.

    Here is one such way

    Activecell.CurrentRegion.Rows.Count

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1