Hi! I need a little help about option buttons:
I've this User Form:
and the cod on the command button is:
Private Sub CommandButton_Click()
If OptionButton1 = True Then
If OptionButton4 = True Then
Welcome.Hide
UserForm1.Show
Load UserForm1
ElseIf OptionButton5 = True Then
Welcome.Hide
Load UserForm2
UserForm2.Show
ElseIf OptionButton6 = True Then
Welcome.Hide
Load UserForm3
UserForm3.Show
End If
End If
End Sub
I've this User Form:

and the cod on the command button is:
Private Sub CommandButton_Click()
If OptionButton1 = True Then
If OptionButton4 = True Then
Welcome.Hide
UserForm1.Show
Load UserForm1
ElseIf OptionButton5 = True Then
Welcome.Hide
Load UserForm2
UserForm2.Show
ElseIf OptionButton6 = True Then
Welcome.Hide
Load UserForm3
UserForm3.Show
End If
End If
End Sub
Last edited: