voici le bon code
j'ai mis value2
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Intersect(Me.ListObjects(1).DataBodyRange, Target) Is Nothing Then Exit Sub
If Not Intersect([J:J,L:L,N:N,S:S,U:U,W:W], Target) Is Nothing Then
Application.EnableEvents = False
With Target.Offset(0, 1)
.NumberFormat = "m/d/yyyy": .Value2 = Date: End With
If Not Intersect([J:J,S:S], Target) Is Nothing Then
With Target.Offset(0, -1)
.NumberFormat = "m/d/yyyy": .Value2 = Date + 2: End With
End If
Application.EnableEvents = True
ElseIf Target.Column = 2 Then
Dim Cel As Range
Set Cel = Sheets("Mes listes").Columns(1).Cells.Find(what:=Target.Value, LookAt:=xlWhole)
If Not Cel Is Nothing Then
Application.EnableEvents = False
Target.Offset(0, 1).Value = Cel.Offset(0, 1).Value
Application.EnableEvents = True
End If
End If
End Sub
le format de la date est bonne mais il met le 14-09-2020 pour tous meme avant
comme si je mettais uen fonction now
Cordialement