I have the next code
Private Sub ComboBox2_DropButtonClick()
ComboBox2.Clear
ComboBox2.AddItem "a"
ComboBox2.AddItem "b"
ComboBox2.AddItem "c"
ComboBox2.AddItem "d"
ComboBox2.AddItem "e"
ComboBox2.AddItem "F"
ComboBox2.Style = fmStyleDropDownList
End Sub
But the only way I succeed to show the selected item in the "closed" combobox is to insert the next sub
Private Sub ComboBox2_Click()
MsgBox ComboBox2.Value
End Sub
Isn't there another way ?
G
Private Sub ComboBox2_DropButtonClick()
ComboBox2.Clear
ComboBox2.AddItem "a"
ComboBox2.AddItem "b"
ComboBox2.AddItem "c"
ComboBox2.AddItem "d"
ComboBox2.AddItem "e"
ComboBox2.AddItem "F"
ComboBox2.Style = fmStyleDropDownList
End Sub
But the only way I succeed to show the selected item in the "closed" combobox is to insert the next sub
Private Sub ComboBox2_Click()
MsgBox ComboBox2.Value
End Sub
Isn't there another way ?
G