D
doudoufly
Guest
Salut à tous,
Voilà j'ai récupéré ce code mais il me met incompatibilité.
Où est l'erreur???
If Target.Value = "" Then Exit Sub
For Each cell In Intersect(UsedRange, Cells)
If cell.Address <> Target.Address And cell.Value = Target.Value Then
MsgBox "saisissez un autre numéro, celui-ci existe déjà"
Target.Value = ""
Target.Select
Exit For
End If
Next cell
End Sub
Si quelqu'un a une idée? ou un autre code merci par avance.
Voilà j'ai récupéré ce code mais il me met incompatibilité.
Où est l'erreur???
If Target.Value = "" Then Exit Sub
For Each cell In Intersect(UsedRange, Cells)
If cell.Address <> Target.Address And cell.Value = Target.Value Then
MsgBox "saisissez un autre numéro, celui-ci existe déjà"
Target.Value = ""
Target.Select
Exit For
End If
Next cell
End Sub
Si quelqu'un a une idée? ou un autre code merci par avance.