Bonjour;
Si c'est la dernière cellule qui est active alors, on sélectionne sur la date suivante, sinon on sélectionne la cellule en dessous, cela vous convient-t-il?
Me dire si vous préférez autre chose.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim DerLig As Long, DerCol As Long, i As Long
On Error GoTo Sortie
Application.EnableEvents = False
If Not Intersect(Target, Range("B1:M23")) Is Nothing Then
DerLig = Range("A" & Rows.Count).End(xlUp).Row
DerCol = Range("B1").End(xlToRight).Column
Set PlageSource = Range("=Recovery!" & Cells(3, "A").Address & ":" & Cells(DerLig, DerCol).Address)
ActiveSheet.ChartObjects("Graphique 5").Activate
With ActiveChart
.SetSourceData Source:=PlageSource
For i = 2 To DerCol
.SeriesCollection(i - 1).Name = Cells(1, i) 'réaffecte les dates à chaque série
Next i
End With
End If
If Target.Row = DerLig Then
Cells(1, DerCol + 1).Select
Else
Cells(Target.Row + 1, Target.Column).Select
End If
Sortie:
Application.EnableEvents = True
End Sub
CDlt