Bonjour,
un essai en ayant "tout" mis en tableau structuré avec des noms "accrocheurs" :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cel As Range, Plage As Range
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Target, Range("PlanningChantier[[Jour 1]:[Jour 10]]")) Is Nothing Then
Set Plage = Sheets("BDD").ListObjects("Correspondances").ListColumns("Nom Chantier").DataBodyRange
Set Cel = Plage.Find(Target.Value)
If Not Cel Is Nothing Then
Application.EnableEvents = False
Target.Value = Cel.Offset(, 1).Value
Application.EnableEvents = True
End If
End If
End Sub
Code événementiel sur la surveillance "Change" de la feuille "Planning".
Le fichier :
@ bientôt
LouReeD