Re,
Merci pour le retour,
Attention toutefois, si le nom est présent plusieurs fois, il n'en supprime qu'1.
Dans ce cas:
Sub efface_noms()
Dim tb, lig%, cp%
With Sheets("Feuil1") 'nom de la feuille à adapter
tb = .Range("D2:D30") 'plage à adapter
cp = 0
nom = InputBox("Entrez le nom à supprimer :", "nom") 'renseigner un nom (ex:Boucher)
If nom = "" Then Exit Sub
For lig = 1 To UBound(tb, 1)
If tb(lig, 1) Like nom Then
cp = cp + 1
tb(lig, 1) = ""
End If
Next lig
If cp = 0 Then
MsgBox "Nom inconnu !", vbExclamation: Erase tb: Exit Sub
Else
If MsgBox("Etes-vous certain de vouloir supprimer le nom " & nom & " ?", vbYesNo, "Demande de confirmation") = vbYes Then
.Range("D2").Resize(UBound(tb, 1), 1) = tb
MsgBox "Le nom " & nom & " a été effacé !"
End If
End If
Erase tb
End With
End Sub
Cdlt,