Multiple selection from the list box or combo box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tara99
    New Member
    • Oct 2006
    • 106

    Multiple selection from the list box or combo box

    Is it possible to select multiple items from a list or Combo box?

    If yes then how?

    Thanks
  • Tanis
    New Member
    • Mar 2006
    • 143

    #2
    Not from a combo box, but you can from a list box. There's a property on the list box called Multi Select. Change that to Simple.You wiil obvously need code somewhere to carry out the instructions. Depends on what you want to do.

    Comment

    • MMcCarthy
      Recognized Expert MVP
      • Aug 2006
      • 14387

      #3
      Originally posted by tara99
      Is it possible to select multiple items from a list or Combo box?

      If yes then how?

      Thanks
      ListBox only

      In properties window go to the other tab and set Multi Select to Simple

      Then you can use the following code somewhere:

      Code:
       
      Dim tmpItem As Variant
       
      For Each tmpItem In listBoxName.ItemsSelected
       
      ' do something
      ' reference each object individually using
      <something> = listBoxName.ItemData(tmpItem)
       
      Next tmpItem

      Comment

      • Gobi nath
        New Member
        • Oct 2011
        • 16

        #4
        not possible in combobox , but in listbox allow to select

        Comment

        Working...