Private Sub Worksheet_Change(ByVal Target As Range)
' Macro enregistrée le 13/03/2012 par Excel-lent
If Target.Column <> 3 Then Exit Sub
If Application.CountIf(Feuil1.Range("J2:J" & [J2].End(xlDown).Row), Cells(Target.Row, 1) & Cells(Target.Row, 3)) > 1 Then
MsgBox "Numéro de 'sous plan' déjà existant, donc supprimé"
End If
Range("C" & Target.Row).clearcontents
End Sub