Re:backcolor dans textbox conditions multiples
Cela marche mais une fois, à la première sélection, il faudrai que le code se réinitialise à chaque selection du menu déroulant, est ce que cela est faisable.
J'ai trafiqué un peu ton code initial de la façon suivante :
Case 30
multiprest.TextBox1.BackColor = &HFFFFFF
multiprest.TextBox2.BackColor = &HFF&
multiprest.TextBox3.BackColor = &HFFFFFF
Case 31
multiprest.TextBox1.BackColor = &HFFFFFF
multiprest.TextBox2.BackColor = &HFFFFFF
multiprest.TextBox3.BackColor = &HFF&
Case 32
multiprest.TextBox1.BackColor = &HFF&
multiprest.TextBox2.BackColor = &HFFFFFF
multiprest.TextBox3.BackColor = &HFF&
Case 33
multiprest.TextBox1.BackColor = &HFF&
multiprest.TextBox2.BackColor = &HFFFFFF
multiprest.TextBox3.BackColor = &HFFFFFF
End Select
End With
End If
End If
End Sub
a++
Yvon
|