korhan
Board Regular
- Joined
- Nov 6, 2009
- Messages
- 215
Hello Mr.Excel Community,
I have a really simple question which I couldn't figure out by myself.
My listbox won't initialize no matter what I have tried. I have tried to initialize the listbox when I open the form, I have also tried a click event and none of them worked.
Here is my test code for Form Initialization
Sub QuoteForm_Initialize()
' Fill the list box
Me.lstItemNames.AddItem "Orange"
End Sub
And test code for ListBox click event:
Private Sub lstItemNames_Click()
Me.lstItemNames.AddItem "Orange"
End Sub
I have a really simple question which I couldn't figure out by myself.
My listbox won't initialize no matter what I have tried. I have tried to initialize the listbox when I open the form, I have also tried a click event and none of them worked.
Here is my test code for Form Initialization
Sub QuoteForm_Initialize()
' Fill the list box
Me.lstItemNames.AddItem "Orange"
End Sub
And test code for ListBox click event:
Private Sub lstItemNames_Click()
Me.lstItemNames.AddItem "Orange"
End Sub