+ Reply to Thread
Results 1 to 4 of 4

Count a items in a column in a form listbox

  1. #1
    Registered User
    Join Date
    06-25-2022
    Location
    Ivory Coast
    MS-Off Ver
    3665
    Posts
    3

    Count a items in a column in a form listbox

    It is possible to count the items in a specific column of a form listbox in excel vba?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Count a items in a column in a form listbox

    It's not clear what your question is. All columns of a listbox have the same number of items. It's ListBox1.ListCount.

    Do you mean count the occurrence of a specific item in a specific column?
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-25-2022
    Location
    Ivory Coast
    MS-Off Ver
    3665
    Posts
    3

    Re: Count a items in a column in a form listbox

    Thanks for the fast answer. you right should be the same #s of data, but the data come from a Work Permit Database and I wan to know from a period requested in the form in a listbox some of the permit are not close

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Count a items in a column in a form listbox

    You just need to update the logic in the following conditional test (taken from the code above) to be what you actually want to test for.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy selected items from listbox in form to a worksheet
    By ymmotteov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2018, 05:20 AM
  2. [SOLVED] Count Items in Listbox
    By Mike_e in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-26-2017, 02:12 AM
  3. [SOLVED] vba to count specific items in listbox
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2016, 03:26 PM
  4. Looping through columns for listbox items in a user form
    By dksr84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2016, 02:26 AM
  5. How to generate a new form according to items in listbox
    By lavender57_1014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2014, 03:00 PM
  6. [SOLVED] Form items chosen in Listbox to populate specific cells in spreadsheet
    By floydian in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-14-2013, 07:48 AM
  7. Check if 2 consecutive Form listbox items selected
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-24-2012, 07:55 PM

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