johnbird1988
Board Regular
- Joined
- Oct 6, 2009
- Messages
- 199
Hello,
I have a UserForm with 14 different OptionButtons on their names are OptionButton1 to OptionButton14. If any of the buttons are select then it executes a procedure below.
Is there a way instead of having the code repeated 14 time to only reference it the once.
Cheers
John
I have a UserForm with 14 different OptionButtons on their names are OptionButton1 to OptionButton14. If any of the buttons are select then it executes a procedure below.
Code:
Private Sub OptionButton1_Click()
Call OBC
End Sub
.
.
.
Private Sub OptionButton14_Click()
Call OBC
End Sub
Is there a way instead of having the code repeated 14 time to only reference it the once.
Cheers
John