Salut Franky,
Salut Joco,
Avec des contrôles Active X.
Private Sub txtB1_Change()
'
txtB1.BackColor = IIf(txtB1.BackColor = RGB(255, 255, 255), RGB(255, 0, 0), RGB(255, 255, 255))
txtB2.BackColor = IIf(txtB1.BackColor = RGB(255, 255, 255), RGB(255, 255, 0), RGB(0, 255, 255))
'
End Sub
Private Sub txtB2_Change()
'
txtB2.BackColor = IIf(txtB2.BackColor = RGB(255, 255, 255), RGB(255, 255, 0), RGB(255, 255, 255))
txtB1.BackColor = IIf(txtB2.BackColor = RGB(255, 255, 255), RGB(0, 255, 0), RGB(0, 0, 255))
'
End Sub
A+