+ Reply to Thread
Results 1 to 7 of 7

Making a listbox behave like a combobox (drop-down part) but keeping multiselect...

  1. #1
    Registered User
    Join Date
    11-07-2011
    Location
    LI, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    Making a listbox behave like a combobox (drop-down part) but keeping multiselect...

    Hey,

    Is is possible to have a listbox behave like how a combobox does with the drop down list on a userform? You can't use multiselect with a combobox and I'm trying to avoid using a listbox with scrollarrows, but rather the efficient drop-down list. I'm stuck at the moment...any help would be greatly appreciated.

    -Tom

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Making a listbox behave like a combobox (drop-down part) but keeping multiselect

    As far as I know, no you cannot have the drop down option in a list box. What I have found to at least be more appealing to the eye is only allow for 3 selections in the list box which make the arrows look somewhat easier on the eyes. I tried making a multi-select combo box sometime ago using shapes but I was not able to continue on with it as it was taking up too much time. At any rate, you are stuck with a list box if you want the multi-select option available.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    11-07-2011
    Location
    LI, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Making a listbox behave like a combobox (drop-down part) but keeping multiselect

    wow, that is surprising and rather frustrating to say the least. Maybe I can change the height of the listbox based on events on the userform because the number of list items is large.

    I also noticed that the the "MatchEntryComplete" on the MatchEntry property doesn't function the same on the listbox as it does on the Combobox. I.e.- if you type in more than one letter on the listbox, it doesn't concatenate your entries to converge on an item in your list, but rather only matches the first character on the list items (hope that makes sense). Am I missing something???

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Making a listbox behave like a combobox (drop-down part) but keeping multiselect

    Can't you just have a button which makes the listbox visible and hides again when it's clicked?

  5. #5
    Registered User
    Join Date
    11-07-2011
    Location
    LI, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Making a listbox behave like a combobox (drop-down part) but keeping multiselect

    I'm sure you can which is what I think I'm going to start working with. In my case I have 6 different search criteria option buttons that need to be selected and once selected, the listbox list gets updated. So I'm going to play around with different events and see if I can't get this to work the way I want.

    No comments about the MatchEntry property different between Listboxes and ComboBoxes?

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Making a listbox behave like a combobox (drop-down part) but keeping multiselect

    It only matches the first 3 letters for me.

    This is easy to remedy with a text box, but not if you also need multiselect

  7. #7
    Registered User
    Join Date
    11-07-2011
    Location
    LI, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Making a listbox behave like a combobox (drop-down part) but keeping multiselect

    I need multiselect. So it matches first 3 letters for you? Only 1 for me....weird.

+ 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