Bonsoir Yvon, bonsoir à toutes et à tous
Yvon, je ne comprends pas bien ton code. Pourquoi ne mets-tu pas le code d'initialisation des TextBox(es) dans le code de ton USF multiprest ?
Enfin, je te propose une solution (pas forcément la meilleure) pour répondre à tes conditions :
Citation:
If (Range('G28') >= 30) And (Range('G28') <= 33) Then
multiprest.Show
With Me
multiprest.TextBox1.BackCo lor = &HFFFFFF
multiprest.TextBox2.BackCo lor = &HFFFFFF
multiprest.TextBox3.BackCo lor = &HFFFFFF
Select Case Sheets(1).Range('G28')
Case 30
mu ltiprest.TextBox2.BackColor = &HFF&
Case 31
mu ltiprest.TextBox3.BackColor = &HFF&
Case 32
mu ltiprest.TextBox1.BackColor = &HFF&
mu ltiprest.TextBox3.BackColor = &HFF&
Case 33
mu ltiprest.TextBox1.BackColor = &HFF&
End Select
End With
End If
|
Questions facultatives : à quoi sert le 'With Me' ? Arrives-tu à initialiser tes TextBoxes après multiprest.Show ?
Amicalement
Charly