je vais reprendre mon problème: je voulais utiliser la fonction si dans une cellule de mon classeur mais j'ai besoin de plus de huit si donc je doit passer en VBA avec la fonction IF . J'ai essayé de m'y mettre mais ce que j'ai écrit comporte des érreur !!!! (boite de dialogue) donc si vous pouvez m'aider???
PS: au debut je ne voulais pas de macro mais maintenant je pense mettre un boutton pour l'actionner.
If B14="" then B16=""
Else
If B9="diam interieur" then
If B14>B11 then
B15="REBUT"
Else
If B14<B10 Then B15="A USINER"
Else
If B12<B14<B11 then B15="BONNE"
End if
Else
If B14<B11 then
B15="REBUT"
Else
If B14>B10 Then B15="A USINER"
Else
If B12<B14<B11 then B15="BONNE"
End if
End if
merci

Prends l'habitude d'indenter ton code, tu verras où ils doivent être placés...
Ca peut donner un truc comme ça :
If B14="" then B16="" Else If B9="diam interieur" then If B14>B11 then B15="REBUT" Else If B14<B10 Then B15="A USINER" Else If B12<B14<B11 then B15="BONNE" End if End if End if Else If B14<B11 then B15="REBUT" Else If B14>B10 Then B15="A USINER" Else If B12<B14<B11 then B15="BONNE" End if End if End if End if End if--A+ Blux