Bonjour,
J'ai un petit probleme avec un code.
Par défautl le CommandButton1 est toujours visible, je souhaite qu’il soit invisible en cas de choix1et choix2. J’ai commencé un code, mais il ne fonctionne pas parfaitement.
Private Sub ComboBox8_Change()
CommandButton2.Visible = IIf(ComboBox8 = "Choix1", True, False)
CommandButton3.Visible = IIf(ComboBox8 = "Choix2", True, False)
CommandButton1.Visible = IIf(ComboBox8 = "Choix1", False, True)
CommandButton1.Visible = IIf(ComboBox8 = "Choix2", False, True)
End Sub
Merci d’avance
Lanoe
J'ai un petit probleme avec un code.
Par défautl le CommandButton1 est toujours visible, je souhaite qu’il soit invisible en cas de choix1et choix2. J’ai commencé un code, mais il ne fonctionne pas parfaitement.
Private Sub ComboBox8_Change()
CommandButton2.Visible = IIf(ComboBox8 = "Choix1", True, False)
CommandButton3.Visible = IIf(ComboBox8 = "Choix2", True, False)
CommandButton1.Visible = IIf(ComboBox8 = "Choix1", False, True)
CommandButton1.Visible = IIf(ComboBox8 = "Choix2", False, True)
End Sub
Merci d’avance
Lanoe