+ Reply to Thread
Results 1 to 4 of 4

Retrieve Array from Selection of Activex List Box (Help pls)

  1. #1
    Forum Contributor
    Join Date
    01-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    263

    Retrieve Array from Selection of Activex List Box (Help pls)

    EDIT: I found a code that I could adapt to perform as intended, the only problem is that I must add manually each item of the list and there will be a situation with 100+ items.

    Anyone has an idea of how I could make it count the items dynamically so I wouldn't have to add them one by one?

    Please Login or Register  to view this content.






    Hello dear amigos,

    I'm trying to create a dynamic analysis, and at this point, I need to retrieve the selected options from an activex list box.

    The box is configured as and extended multi selection. I tried using this code below (although it only returns true or false, which wouldn't perfectly suit my purpose), but I can't make it work.

    My intention is to output an array with the selected items in the list, but only with the selected, updating whenever there's a change in the listbox.

    I linked the cell output to S14, and it'd output correctly as a single selection option, but when inserting the code in the listbox code window and trying to change the selected items I get an error (the item with the specified name was not found) on the red highlighted line:


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by therealdees; 04-04-2021 at 09:37 AM.
    Pedro.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: Retrieve Array from Selection of Activex List Box (Help pls)

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    01-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    263

    Re: Retrieve Array from Selection of Activex List Box (Help pls)

    I attached a sample. Thanks for the reply

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,083

    Re: Retrieve Array from Selection of Activex List Box (Help pls)

    How about
    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. ActiveX ComboBox Selection Immediately Vanishes
    By BruceMartin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-07-2020, 10:18 AM
  2. ActiveX Command Button combined with ActiveX List Boxes – VBA Code Needed
    By Stlcards13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2017, 02:56 PM
  3. Using activex control to retrieve data relevant to the term searched.
    By garyaddis1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2015, 11:13 AM
  4. retrieve data related to selection in dro down list.
    By RAexcel in forum Excel General
    Replies: 2
    Last Post: 10-24-2014, 08:58 AM
  5. De-Select ActiveX List Box Selection
    By Louis_forum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2013, 02:53 PM
  6. Remember Selection of ActiveX Listbox
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 02:36 AM
  7. make invisible activex commandbutton in selection
    By bambino_32 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-04-2010, 02:05 AM

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