[RESOLU]colorer les texebox sous conditions

chaelie2015

XLDnaute Accro
Bonjour forum
dans mon USF j'ai ce code
Code:
Private Sub ComboBox1_Change()

If ComboBox1.ListIndex = -1 Then Exit Sub
Me.TextBox1.Value = Range("liste!G" & ComboBox1.ListIndex + 3) & " Jour(s)"
Me.TextBox2.Value = Range("liste!H" & ComboBox1.ListIndex + 3) & " Jour(s)"
Me.TextBox3.Value = Range("liste!I" & ComboBox1.ListIndex + 3) & " Jour(s)"
Me.TextBox4.Value = Range("liste!J" & ComboBox1.ListIndex + 3) & " Jour(s)"
Me.TextBox5.Value = Range("liste!K" & ComboBox1.ListIndex + 3) & " Jour(s)"

End Sub
je souhaite colorer en vert (par exemple) les TextBox si la valeur sup a 30
Salutations
 
Dernière édition:

Discussions similaires

Réponses
17
Affichages
679
Réponses
4
Affichages
647

Statistiques des forums

Discussions
314 203
Messages
2 107 178
Membres
109 773
dernier inscrit
sablin