Bonsoir,
1) plutôt que de nous mettre une copie d'écran, tu pourrais nous mettre une copie de ton code.
2) voici lun proposition de correction
Dim derniereligne As Integer
Dim numeroligne As Integer
derniereligne = Cells(1, 1).End(xlDown).Row + 1
Cells(10, 1) = everytime
Cells(derniereligne, 1) = InputBox("numero de référence")
For numeroligne = 2 To derniereligne - 1
If Cells(numeroligne, 1) = Cells(derniereligne, 1) Then
MsgBox ("ref existe")
Cells(derniereligne, 1) = ""
Exit Sub
End If
Next
Cells(derniereligne, 2) = InputBox("libelle")
Cells(derniereligne, 3) = InputBox("prix")