Condition pour une valeur specifique dans if

Bonjour,

J'ai fait un programme avec moultes et moultes boucles et je m'y perds un peu.

Je voudrais savoir comment mettre une condition dans if pour une valeur spécifique:

En simplifiant:

For j = 1 To 5

If doesExistMotPrincipal(MotPrincipal, str) = True And CStr(ws2.Range("Z" & lg2).Value) = j And (For j=5 CStr(ws2.Range("X" & lg2).Value)=Var1 Or (CStr(ws2.Range("Y" & lg2).Value)=Var2) Then

Je veux que la macro teste la condition en gras pour j=5.

Est ce possible?

Merci
Configuration: Windows XP
Opera 9.51

1 réponse

  1. up ^^

    Svp c'est urgent
    1