Bonjour,
Une deuxième proposition à étudier.
La procédure s'exécute avec un double-clic en colonne C.
Cdlt.
Option Explicit
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim x As String
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("C:C")) Is Nothing Then
Cancel = True
x = Me.Cells(Rows.Count, "C").End(xlUp).Value
x = Format(Replace(x, "_", "") + 1, "_0000")
Me.Cells(Rows.Count, "C").End(xlUp)(2).Value = x
End If
End Sub