1 2 3 4 5 6 7 8
| ActiveSheet.ChartObjects("Graphique 1").Activate
With Sheets("Analysis")
.ChartObjects("Graphique 1").Chart.SeriesCollection(1).Values = .Range(.Cells(6, 18), .Cells(5 + p, 18)) 'à quoi sert cette ligne, si tu changes 2 lignes plus tard ?
.ChartObjects("Graphique 1").Chart.SeriesCollection.NewSeries '<----------------------------------------------
.ChartObjects("Graphique 1").Chart.SeriesCollection(2).Values = .Range(.Cells(6, 21), .Cells(5 + p, 21))
'.ChartObjects("Graphique 1").Chart.SeriesCollection(1).Values = .Range(.Cells(6, 20), .Cells(5 + p, 20))
.ChartObjects("Graphique 1").Chart.SeriesCollection(1).XValues = .Range(.Cells(6, 16), .Cells(5 + p, 16))
End With |