Results 1 to 7 of 7

Count rows starting in particular row

Threaded View

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    Detroit, MI
    MS-Off Ver
    Excel 2010
    Posts
    65

    Count rows starting in particular row

    Hello all -

    I am trying to COUNT the number of rows in a range of cells until I come to a blank line (the last two rows of my spreadsheet are a blank line and then a TOTALS line which I dont want to count). Is this possible?? For example start in A3 and count until you hit a blank line.

    This is the code I havebeen working with:
    Sub DelRows()
        Dim iRowCountA As Integer, iRowCountB As Integer
        
        iRowCountA = Sheets(1).Range("A3").CurrentRegion.Rows.Count
        iRowCountB = Sheets(2).Range("A10").CurrentRegion.Rows.Count
        debug.print iRowCountA 
        debug.print iRowCountAB
    End Su
    The A3 and A10 just seem to designate the range of cells to count and not the actual starting point???
    Any help would be great!!
    Last edited by bosco2; 04-27-2011 at 02:20 PM.

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