maval
XLDnaute Barbatruc
Bonjour
J'ai six Textbox et une listbox sur mon formulaire lorsque je click sur un item de la listbox les fonds de mes textbox deviennent vert avec se code:
Comment peut on simplifier?
Merci d'avance
J'ai six Textbox et une listbox sur mon formulaire lorsque je click sur un item de la listbox les fonds de mes textbox deviennent vert avec se code:
Code:
With Me.TextBox1
.Value = ""
.BackColor = 12648384 'vert clair
End With
With Me.TextBox2
.Value = ""
.BackColor = 12648384 'vert clair
End With
With Me.TextBox3
.Value = ""
.BackColor = 12648384 'vert clair
With Me.TextBox4
.Value = ""
.BackColor = 12648384 'vert clair
With Me.TextBox5
.Value = ""
.BackColor = 12648384 'vert clair
End With
With Me.TextBox6
.Value = ""
.BackColor = 12648384 'vert clair
End With
Comment peut on simplifier?
Merci d'avance