+ Reply to Thread
Results 1 to 11 of 11

Two listbox(activex) to multiple selection options to get the count

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2016
    Posts
    35

    Question Two listbox(activex) to multiple selection options to get the count

    hello everybody & excel VBA experts,
    New to forum

    Actually my role is to report and preparing the dashboard. I always use excel for reporting. I have a challenge i.e., I have a two listbox (Activex controls) 1st is project & 2nd is country, both are in same sheet, what i want is, if i select the project in listbox1 and also select more than one country in listbox2, it should give the total count of the selected countries for that particular project.

    I hope this question is makes sense and understandable. find the attachment for better understanding.
    thanks in advance for reply.

    I think this very challenging for you.
    Attached Files Attached Files
    Last edited by farhanahamed; 03-04-2013 at 08:06 AM. Reason: solved

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Two listbox(activex) to multiple selection options to get the count

    Hi,

    this code below will solve your problem.

    hope this helps.

    Happy Computing.


    Please Login or Register  to view this content.
    Last edited by xlbiznes; 02-22-2013 at 09:15 AM.

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Two listbox(activex) to multiple selection options to get the count

    hi,
    Thanks for your code. anyway i cant use this, my need is different as based on the post. thanks. Anybody wants to help me for this..

    thanks in advance..........!!!!!

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Two listbox(activex) to multiple selection options to get the count

    Hi,

    Attached is your file with the needed code. Hope i have understood what you really need.
    Attached Files Attached Files
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Two listbox(activex) to multiple selection options to get the count

    hi dude,

    Thats great.. really works good, but one more to add, i want in the reverse, getting count of selection of multiple projects with one country, is it possible. Much appreciation for your help.

  6. #6
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Two listbox(activex) to multiple selection options to get the count

    Hi,

    Here you go.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-22-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Two listbox(activex) to multiple selection options to get the count

    Hi, Thanks.. thats very very nice.. all the best for you.. i am wondering how people with the great knowledge


  8. #8
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Two listbox(activex) to multiple selection options to get the count

    Glad i could help.

    If you are happy with the solution, please mark this thread as solved.

  9. #9
    Registered User
    Join Date
    02-22-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Two listbox(activex) to multiple selection options to get the count

    Hi,
    The above works well and good, actually that is for one reporting. I want the same for the different, the above just counts between projects and countries by multiple selection, now i added two column which i want the sum (just add two separate cells for this output for the two source data columns). see attachment. thanks in advance. I hope you understand my 2nd requirement
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-22-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Two listbox(activex) to multiple selection options to get the count

    hi gurus,
    any help for the last post........!!!

    thanks in advance

  11. #11
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Two listbox(activex) to multiple selection options to get the count

    Quote Originally Posted by farhanahamed View Post
    hi gurus,
    any help for the last post........!!!

    thanks in advance


    Not sure about this new requirement.

+ 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