hello all,,,
I was wondering how i can refernce the text that is selected in a combox or listbox.
quick, simple easy, a waste of your time.
thank you
Printable View
hello all,,,
I was wondering how i can refernce the text that is selected in a combox or listbox.
quick, simple easy, a waste of your time.
thank you
Try this:
Is this what you looking for??Code:Private Sub Command1_Click()
MsgBox Combo1.Text
End Sub
Private Sub Form_Load()
Combo1.AddItem "hello"
Combo1.AddItem "hello1"
Combo1.AddItem "hello2"
Combo1.AddItem "hello3"
End Sub
Rob
yup, ty
..or without an extra control.
Code:Private Sub Combo1_Click()
MsgBox Combo1.Text
End Sub