If ComboBox

David

XLDnaute Occasionnel
bonjour à tous

Y aurait il un moyen de mettre plusieurs choix dans le if au lieux de taper autant de ligne que de choix ?

Code:
Private Sub ComboBox1_change()
If ComboBox1 = ('Animateur Insertion') Then
Emploi_Repere.Text = 'Animateur'
End If
If ComboBox1 = ('Animatrice Insertion') Then
Emploi_Repere.Text = 'Animateur'
End If

en

If ComboBox1 = ('Animatrice Insertion', 'Animatrice Insertion') Then
Emploi_Repere.Text = 'Animateur'
End If

Merci d'avance
 

Discussions similaires

Réponses
13
Affichages
298

Statistiques des forums

Discussions
312 758
Messages
2 091 788
Membres
105 074
dernier inscrit
JPATOUNE