DavidRoger
Board Regular
- Joined
- Oct 2, 2011
- Messages
- 135
Hi all,
I have several listboxes and spin buttons. They all have same code.
Here is the code I use for listbox 1 and apply to all other:
Here is my question. Can all the listboxes and spin buttons be combined and just using one code instead of reply them all.
I have tried something like below and similar but code run into debug
Hope someone can show me some example.
Thanks.
I have several listboxes and spin buttons. They all have same code.
Here is the code I use for listbox 1 and apply to all other:
Code:
Private Sub ListBox1_Click()
Range("A1").Value = vbNullString
End Sub
Here is my question. Can all the listboxes and spin buttons be combined and just using one code instead of reply them all.
I have tried something like below and similar but code run into debug
Code:
Private Sub ListBox1+ListBox2+ListBox3+Spinner1+Spinner2+Spinner3_Click()
Range("A1").Value = vbNullString
End Sub
Hope someone can show me some example.
Thanks.