Bonjour Banzaï
Ca fonctionne avec ComboBox_Change mais pas ou très mal avec ComboBox_GotFocus...
Comme je suis pas une tête, j'ai contourné le problème en créant un userform qui renseigne une TextBox
Je me permet de poser une question concernant la facon d'alimenter ma TextBox.
Mon code contient énormement de "End If"
Pourrais-tu me dire si je l'ai correctement écris.
Je sais le faire quand il s'agit de renseigner une seule TextBox, mais là j'en renseigne deux..
Private Sub CommandButton1_Click()
If OptionButton1 = True Then
Feuil1.TextBox1.Value = "BuBu"
Feuil1.TextBox2.Value = "Pascal..eu"
End If
If OptionButton2 = True Then
Feuil1.TextBox1.Value = "WaWa"
Feuil1.TextBox2.Value = "Jeremy..eu"
End If
If OptionButton3 = True Then
Feuil1.TextBox1.Value = "KiKi"
Feuil1.TextBox2.Value = "Philippe..eu"
End If
If OptionButton4 = True Then
Feuil1.TextBox1.Value = "DoDo"
Feuil1.TextBox2.Value = "Cedric..eu"
End If
If OptionButton5 = True Then
Feuil1.TextBox1.Value = "BiBi"
Feuil1.TextBox2.Value = "JC..eu"
End If
Unload Me
End Sub
Merci Bcp