+ Reply to Thread
Results 1 to 3 of 3

count colomns

  1. #1
    RobcPettit
    Guest

    count colomns

    Hi, Id like to know how to count in row "A1" how many cells contain
    data. Eg a1,b1,c1,d1 etc.
    Blanks shoudnt be a problem as Im entering data in each col, so a blank
    cell would me the end of data entry anyway.
    Regards Robert


  2. #2
    Tom Ogilvy
    Guest

    RE: count colomns

    for i = 1 to 10
    cnt = application.CountA(columns(i))
    msgbox "Col: " & i & " cnt: " & cnt
    Next

    --
    Regards,
    Tom Ogilvy


    "RobcPettit" wrote:

    > Hi, Id like to know how to count in row "A1" how many cells contain
    > data. Eg a1,b1,c1,d1 etc.
    > Blanks shoudnt be a problem as Im entering data in each col, so a blank
    > cell would me the end of data entry anyway.
    > Regards Robert
    >
    >


  3. #3
    RobcPettit
    Guest

    Re: count colomns

    Thanks For your reply. Thats perfect.
    Regards Robert
    Tom Ogilvy wrote:
    > for i = 1 to 10
    > cnt = application.CountA(columns(i))
    > msgbox "Col: " & i & " cnt: " & cnt
    > Next
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "RobcPettit" wrote:
    >
    > > Hi, Id like to know how to count in row "A1" how many cells contain
    > > data. Eg a1,b1,c1,d1 etc.
    > > Blanks shoudnt be a problem as Im entering data in each col, so a blank
    > > cell would me the end of data entry anyway.
    > > Regards Robert
    > >
    > >



+ 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