Results 1 to 3 of 3

Thread: Function for counting number of rows

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Function for counting number of rows

    Is there a function that will count the number of rows that contain data for a specified range? I can't find one. The "count" function only counts when there are numeric values. I just want a count of rows with data in general.

    Also, I have a worksheet with a list of names and some other data. I also have a form where I am inputing data. I wish to append this data to the end of my sheet or where the last row of data is when I click on a Command Button. How can I do this programmatically within VBA in my "Commandbutton1_Click" event?

    Thanks,

    Blake

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Function for counting number of rows

    There are several Count functions, the one you need here is CountA (I'm not sure why it's called A!)

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Function for counting number of rows

    Thanks geek...that's what I was looking for.

Posting Permissions

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



Click Here to Expand Forum to Full Width