1
Expensive,
I have 4 optionButton (2 different groups), where 2 represent "Yes" and "No" for two different questions.
What I want to do:
When the user chooses the NO option in group1 and then chooses the YES option in Grupo2 a textobox is already displayed to explain why the answers are not equal (I can already do this).
And when it changes the group 1 option to YES, in Grupo2 you have to hide the textbox field.
Detail: optionButtons are in different multitabs*
Problem:
When the user is switching group option 1 to YES, he is not hiding the Grupo2 textbox.
Code to date:
Private Sub UserForm_Click()
If simSIMONI.Value = naoSISUP.Value Then
motNaoSIMONI.Visible = True
labMotNaoSIMONI.Visible = True
End If
End Sub
You put Visible as true... will not hide even false
– Anderson Henrique
You need to use the events of the option buttons themselves. In your code you are using the click on the form, which makes no sense.
– PedroMVM
@Andersonhenrique, this is one example. was a bad example of code
– Kennedy Anderson
@Pedromvm I wish I didn’t have to put in all, because there are many. That’s why I tried to put right into the Form.
– Kennedy Anderson
If there really are many Change Events, you can create a Change event class module in option Buttons within this Userform. It’s a bit more complex, but when an iterative user window is created with many buttons, this can make programming easier.
– danieltakeshi