Bonsoir
juste pour vous saluer et participer
il faut savoir que
ListIndex renvoie un chiffre 0 premiere position
1 deuxieme etc( voir limites)et
-1 vide
jean marie
Bah quand on veut programmer il faut avoir un minimum de jugeote :
VB:
Private Sub ComboBox1_Change()
CommandButton1.Visible = ComboBox1.ListIndex > -1 And ComboBox2.ListIndex > -1
End Sub
Private Sub ComboBox2_Change()
CommandButton1.Visible = ComboBox1.ListIndex > -1 And ComboBox2.ListIndex > -1
End Sub