First off, I hope I posted this is the right section and sorry if I didn't. I am new to visual basic and am creating a user form. There is a list box on the user form and I want it to automatically be populated with some works, such as "apple" " orange". This seems pretty basic right?!!! well not for me... My code:
Private Sub ListBox1_Click()
ListBox1.AddItem "asdf"
End Sub
.... this doesn't work... i'm assuming it is becaus of the _Click() at the end of the top line. What is that supposed to be set as? I have looked all over and I can't find anything that discusses my particular problem and its getting quit frustrating. I will greatly appreciate all help.
Thanks
Private Sub ListBox1_Click()
ListBox1.AddItem "asdf"
End Sub
.... this doesn't work... i'm assuming it is becaus of the _Click() at the end of the top line. What is that supposed to be set as? I have looked all over and I can't find anything that discusses my particular problem and its getting quit frustrating. I will greatly appreciate all help.
Thanks