I have 2 listboxes. I don't want it to be in an array control. How can make a msgbox show, when I click on either of the 2 listbox. Do I have to have one click event for each one? Is there a way to combine both click event together?
Printable View
I have 2 listboxes. I don't want it to be in an array control. How can make a msgbox show, when I click on either of the 2 listbox. Do I have to have one click event for each one? Is there a way to combine both click event together?
This what you want?
Code:Private Sub Command1_Click()
List1_Click
List2_Click
End Sub
Thanks Matthew.
I want when I click on either listbox it will pull off the same thing.
Never mind, I been working so hard I forgot. I could put the code in another procedure and have both listbox call the procedure.
Thanks.