harveya915
Board Regular
- Joined
- Sep 4, 2015
- Messages
- 141
Got a UserForm with 2 groups of Option buttons (OptionButtons 1&2 = Group1, OptionButton 3&4 = Group2).
I need to have text entered into a textbox depending on which options from each group are selected.
I know the code for when only using one group:
Now I just need to know how to incorporate when selecting per-say OptionButton1 and OptionButton3, or 1&4, or 2&3, or 2&4.
Much thanks!
I need to have text entered into a textbox depending on which options from each group are selected.
I know the code for when only using one group:
VBA Code:
Private Sub CommandButton1_Click()
If OptionButton1.Value = True Then
TextBox1.Value = "Test Text"
End If
Private Sub CommandButton1_Click()
If OptionButton2.Value = True Then
TextBox1.Value = "Test Text 2"
End If
End Sub
Now I just need to know how to incorporate when selecting per-say OptionButton1 and OptionButton3, or 1&4, or 2&3, or 2&4.
Much thanks!