ok et maintenant comment je l.ajoute à une macro existante. J'ai copié comme ça et j'obtiens une erreur:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("c4"), Target) Is Nothing And Target.Count = 1 Then
If UCase(Target) = "N1" Then Target = "#" & Format(Now, "ddmmyyhhmmss")
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("e5:c4:C4"), Target) Is Nothing And Target.Count = 1 Then
Range("b2") = Trim(Range("e5") & " " & Range("c4") & " " & Range("b5"))
End If
End Sub