Sub Valider()
With Range("D10:D" & Rows.Count)
If Application.CountIf(.Cells, [D3]) Then [D5] = "Ce texte existe déjà": Exit Sub
[D5] = ""
If .Cells(1) = "" Then
.Cells(1) = [D3]
.Cells(1).Name = "Cible"
Else
With .Find("", , xlValues)
.Value = [D3]
.Name = "Cible"
End With
End If
[D3] = ""
End With
End Sub
Sub Annuler()
On Error Resume Next
With Range("Cible")
[D3] = .Value
.Value = ""
End With
End Sub