Private Sub CommandButton1_Click()
Dim Ligne As Integer
Ligne = Feuil1.Range("B65000").End(xlUp).Row + 1
Set r = Feuil1.Range("B:B").Find(Ref.Value)
If Not r Is Nothing Then r.Offset(, 1) = r.Offset(, 1) + 1
If r Is Nothing Then
Feuil1.Range("B" & Ligne) = Ref.Value
Feuil1.Range("F" & Ligne) = "1"
End If
Ligne = Ligne + 1
Ref.Text = ""
Ref.SetFocus
End Sub
Private Sub UserForm_Initialize()
Ref.SetFocus
Ref.Value = ""
Ref.SetFocus
End Sub