Bonjour le forum,
Dans le fichier ci-joint, je souhaiterais remplacer l'instruction "if...then" par un "iif"
If Cells(i, 3).Value Like "5*" Then
Cells(i, 7) = 0
Else
Cells(i, 7) = Cells(i, 6): Cells(i, 6) = Cells(i, 6): Cells(i, 6) = 0
End If
Next i
Mais cela ne fonctionne pas avec quelque chose comme
Cells(i, 7).Value = IIf(Cells(i, 3).Value Like "5*", 0, Cells(i, 6) : Cells(i, 6) = Cells(i, 6) : Cells(i, 6) = 0))
Pourriez-vous s'il vous plait m'apporter vos lumières pour la correcte rédaction de l'instruction ?
Vous en remerciant, bonne journée
zebanx