je dois mettre plusieurs condition pour un seul resultat est je bute
sur ca.
If Range(Cells(1, 12), Cells(1, 12)) =3D "" And (Range(Cells(1, 13),
Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <>
"REPRISE")) Then
msgbox"Allo"
end if
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
MichD
Tu pourrais écrire cela en plus simple :
Comme tu n'as pas décrit tes conditions, il est difficile de savoir si la présentation correspond à tes conditions.
'------------------------------------ If Range("L1") <> "" And _ (LCase(Range("M1")) <> "oui" Or UCase(Range("N1")) <> "REPRISE") Then MsgBox "Allo" End If '------------------------------------
MichD -------------------------------------------- "joseph84" a écrit dans le message de groupe de discussion :
Bonjour tout le monde,
je dois mettre plusieurs condition pour un seul resultat est je bute sur ca.
If Range(Cells(1, 12), Cells(1, 12)) = "" And (Range(Cells(1, 13), Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <> "REPRISE")) Then msgbox"Allo" end if
je comprend pas où est l'erreur
Merci
Tu pourrais écrire cela en plus simple :
Comme tu n'as pas décrit tes conditions, il est difficile de savoir
si la présentation correspond à tes conditions.
'------------------------------------
If Range("L1") <> "" And _
(LCase(Range("M1")) <> "oui" Or UCase(Range("N1")) <> "REPRISE") Then
MsgBox "Allo"
End If
'------------------------------------
MichD
--------------------------------------------
"joseph84" a écrit dans le message de groupe de discussion :
5e6b4010-45e2-452b-9e48-5c1b215789f7@d8g2000prf.googlegroups.com...
Bonjour tout le monde,
je dois mettre plusieurs condition pour un seul resultat est je bute
sur ca.
If Range(Cells(1, 12), Cells(1, 12)) = "" And (Range(Cells(1, 13),
Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <>
"REPRISE")) Then
msgbox"Allo"
end if
Comme tu n'as pas décrit tes conditions, il est difficile de savoir si la présentation correspond à tes conditions.
'------------------------------------ If Range("L1") <> "" And _ (LCase(Range("M1")) <> "oui" Or UCase(Range("N1")) <> "REPRISE") Then MsgBox "Allo" End If '------------------------------------
MichD -------------------------------------------- "joseph84" a écrit dans le message de groupe de discussion :
Bonjour tout le monde,
je dois mettre plusieurs condition pour un seul resultat est je bute sur ca.
If Range(Cells(1, 12), Cells(1, 12)) = "" And (Range(Cells(1, 13), Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <> "REPRISE")) Then msgbox"Allo" end if
je comprend pas où est l'erreur
Merci
Jacky
Bonjour,
Essaie avec
If (Cells(1, 12) = "" And Cells(1, 13) <> "oui") Or Cells(1, 14) = "REPRISE" Then..... ou If ([l1] = "" And [m1] <> "oui") Or [n1] = "REPRISE" Then..... -- Salutations JJ
"joseph84" a écrit dans le message de news:
Bonjour tout le monde,
je dois mettre plusieurs condition pour un seul resultat est je bute sur ca.
If Range(Cells(1, 12), Cells(1, 12)) = "" And (Range(Cells(1, 13), Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <> "REPRISE")) Then msgbox"Allo" end if
je comprend pas où est l'erreur
Merci
Bonjour,
Essaie avec
If (Cells(1, 12) = "" And Cells(1, 13) <> "oui") Or Cells(1, 14) = "REPRISE" Then.....
ou
If ([l1] = "" And [m1] <> "oui") Or [n1] = "REPRISE" Then.....
--
Salutations
JJ
"joseph84" <youwangsoft@gmail.com> a écrit dans le message de news:
5e6b4010-45e2-452b-9e48-5c1b215789f7@d8g2000prf.googlegroups.com...
Bonjour tout le monde,
je dois mettre plusieurs condition pour un seul resultat est je bute
sur ca.
If Range(Cells(1, 12), Cells(1, 12)) = "" And (Range(Cells(1, 13),
Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <>
"REPRISE")) Then
msgbox"Allo"
end if
If (Cells(1, 12) = "" And Cells(1, 13) <> "oui") Or Cells(1, 14) = "REPRISE" Then..... ou If ([l1] = "" And [m1] <> "oui") Or [n1] = "REPRISE" Then..... -- Salutations JJ
"joseph84" a écrit dans le message de news:
Bonjour tout le monde,
je dois mettre plusieurs condition pour un seul resultat est je bute sur ca.
If Range(Cells(1, 12), Cells(1, 12)) = "" And (Range(Cells(1, 13), Cells(1, 13)) <> "oui" Or (Range(Cells(1, 14), Cells(1, 14)) <> "REPRISE")) Then msgbox"Allo" end if
je comprend pas où est l'erreur
Merci
joseph84
voila j ai essaye d applique se que tu ma propose mais sa fonctionne pas il prend pas en charge les conditions (LCase(Range("N2")) <> "oui" Or UCase(Range("N2")) <> "REPRISE")
voila le code que j ai utilise et qui ne fonctionne pas:
If (Range("P2") = "" And Range("L2") = "" And Range("M2") = "") And _ (LCase(Range("N2")) <> "oui" Or UCase(Range("N2")) <> "REPRISE") Then MsgBox "Allo" Range("p2").Select End If
merci
voila j ai essaye d applique se que tu ma propose mais sa fonctionne
pas il prend pas en charge
les conditions
(LCase(Range("N2")) <> "oui" Or UCase(Range("N2")) <> "REPRISE")
voila le code que j ai utilise et qui ne fonctionne pas:
If (Range("P2") = "" And Range("L2") = "" And Range("M2") = "") And _
(LCase(Range("N2")) <> "oui" Or UCase(Range("N2")) <> "REPRISE")
Then
MsgBox "Allo"
Range("p2").Select
End If
voila j ai essaye d applique se que tu ma propose mais sa fonctionne pas il prend pas en charge les conditions (LCase(Range("N2")) <> "oui" Or UCase(Range("N2")) <> "REPRISE")
voila le code que j ai utilise et qui ne fonctionne pas:
If (Range("P2") = "" And Range("L2") = "" And Range("M2") = "") And _ (LCase(Range("N2")) <> "oui" Or UCase(Range("N2")) <> "REPRISE") Then MsgBox "Allo" Range("p2").Select End If
merci
joseph84
ok tout fonctionne voila la solution:
If Range("P2") = "" And Range("L2") = "" And Range("M2") = "" And _ (Range("N2") <> "oui" And Range("N2") <> "REPRISE") Then MsgBox "Allo" Range("p2").Select Exit Sub End If
Merci encore votre aide ;)
ok tout fonctionne voila la solution:
If Range("P2") = "" And Range("L2") = "" And Range("M2") = "" And _
(Range("N2") <> "oui" And Range("N2") <> "REPRISE") Then
MsgBox "Allo"
Range("p2").Select
Exit Sub
End If
If Range("P2") = "" And Range("L2") = "" And Range("M2") = "" And _ (Range("N2") <> "oui" And Range("N2") <> "REPRISE") Then MsgBox "Allo" Range("p2").Select Exit Sub End If