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
5
Affichages
198

Statistiques des forums

Discussions
312 347
Messages
2 087 504
Membres
103 565
dernier inscrit
Fabien78