Bonjour,
Une petite macro à placer en VBA dans la feuille "entrée titres" de ton fichier.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Macro par Dan pour wili60 le 09/02 - Excel pratique
Dim cell As Range
Dim support As String
Dim le As Date
support = Target.Offset(0, -1)
le = Target.Offset(0, 1)
If Not Application.Intersect(Target, Range("D2", Range("D65536"))) Is Nothing Then
On Error GoTo fin
Application.EnableEvents = False
Range(Target.Offset(1, 0), Range("E65536")).ClearContents
Range(Target.Offset(-1, 0), Range("E2")).ClearContents
For Each cel In Range("C2", Range("C65536").End(xlUp))
If cel = support Then cel.Offset(0, 1) = Target: cel.Offset(0, 2) = le
Next
Application.EnableEvents = True
End If
fin:
Application.EnableEvents = True
End Sub
Amicalement
Dan