+ Reply to Thread
Results 1 to 3 of 3

Return the number of selected items from a listbox

  1. #1
    Registered User
    Join Date
    08-14-2018
    Location
    Valrico, Florida
    MS-Off Ver
    Excel 2013
    Posts
    9

    Return the number of selected items from a listbox

    Cross Posted:
    https://www.mrexcel.com/forum/excel-...s-listbox.html

    When a user clicks the submit button all information from the form is transferred to the tab in my workbook.

    The part of this I am having trouble with is the count of selected items from a 3 multiselect listboxes. Each listbox needs a separate count going to a different cell.

    Start of the transfer:
    Please Login or Register  to view this content.
    The last bit of code needs to tranfere the below 3 Listboxes:

    ListBoxAffiliates
    ListBoxBOLT
    ListBoxDTC


    Cells they need to feed to on the same tab:
    K4
    K5
    K7
    Last edited by jeffreybrown; 09-18-2018 at 05:54 PM. Reason: Added cross post for member

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: Return the number of selected items from a listbox

    You need to attach the sample workbook.
    Teach me Excel VBA

  3. #3
    Registered User
    Join Date
    08-14-2018
    Location
    Valrico, Florida
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Return the number of selected items from a listbox

    Still unable to post a link (the system is adding the url automatically).

    I came up with an alternative solution (below is also posted in the other forum). Not the most eligant but it works. I created textbox for each listbox to count the items as they are being selected. This also made validating that something is select in each list box.

    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. Listbox pre-selected items
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2017, 12:16 AM
  2. [SOLVED] Number of Selected Items in Listbox Determine Size of Table
    By Dferrier in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2016, 03:56 AM
  3. [SOLVED] Return row index of selected items in multicolumn multiselect listbox
    By CaptainK in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2014, 09:19 AM
  4. [SOLVED] Add Selected Items From One ListBox to Another ListBox on UserForm
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 06:53 PM
  5. Copy Selected items from multicolumn, multiselect listbox to another listbox
    By Willigb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2013, 11:27 AM
  6. Transfer random listbox items to new listbox and then loop through selected items
    By narrowgate88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2013, 05:58 PM
  7. How to use selected items from Listbox
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2006, 11:10 AM

Tags for this Thread

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