Help fonction if!!

Résolu
Bonjour,

J'ai besoin d'aide, je ne comprend pas pourquoi ça ne fonctionne pas.

Je dois ouvrir une feuille en fonction de deux conditions.

Voici ce qui marche:

If ([A4] = "EE" And [A8] = "AA" ) Then

Sheets("CC").Select

end if

Voici ce qui ne marche pas:

If ([A4] = "EE" And [A8] = "AA" Or "BB" ) Then

Sheets("CC").Select

end if

Si vous avez une idée....

Merci d'avance
Configuration: Windows Vista
Firefox 3.0.13

3 réponses

  • Votes
  • Date
  • Date décroissante
  1. Bonjour,

    Essaie ça :

    If ([A4] = "EE" And [A8] = "AA" ) Or ([A4] = "EE" And [A8] = "BB" ) Then

    ;o)
    1. ça marche nickel, merci de ton aide Polux31, il fallait y penser!!!