Help with ListBox

  • Thread starter Thread starter Stealth1
  • Start date Start date
S

Stealth1

How can I MsgBox the value of one of the items in my ListBox?
I tried this, but it didn't work...

MsgBox List0.Selected

In other words, my listbox has this in it...
Number Name Color
1 jeff blue
2 jamie red
3 johnson purple

So when I double-click on item #3 I would like to see "3 johnson purple".

Help?
 
Hi,
you would just need to define the columns e.g.:

MsgBox("The values selected are: " & Me.Listbox.Column(0) & " " &
Me.Listbox.Column(1) & " " & Me.Listbox.Column(2))

HTH
Good luck
 
Back
Top