MsgBox Feuil1.ChartObjects(1).Chart.SeriesCollection(1).Formula
MsgBox WorksheetFunction.Max(Feuil1.ChartObjects(1).Chart.SeriesCollection(1).Values)
Sub test()
Dim leGraphique As Chart, laSerie As Series, msg As String
'récupérer le graphique
Set leGraphique = ThisWorkbook.Sheets("Feuil1").ChartObjects("Graphique 1").Chart
'boucler sur chaque série du graphique
For Each laSerie In leGraphique.SeriesCollection
'récupérer le min et le max de la série courante
msg = msg & "Série """ & laSerie.Name & """ --> "
msg = msg & "Max:" & Application.WorksheetFunction.Max(laSerie.Values) & " - "
msg = msg & "Min:" & Application.WorksheetFunction.Min(laSerie.Values) & vbNewLine
Next laSerie
'afficher le min et le max de toutes les séries
MsgBox msg
'ou alors, récupérer une série particulière
Set laSerie = leGraphique.SeriesCollection("Série1")
'afficher le max de la série
MsgBox Application.WorksheetFunction.Max(laSerie.Values)
End Sub
Sub Trouve_Min_Max_Series()
Dim MinX(100), MaxX(100), MinY(100), MaxY(100)
'ActiveSheet.ChartObjects("Graphique 1").Activate
'ActiveChart.SeriesCollection(1).Select
'MsgBox Feuil1.ChartObjects(1).Chart.SeriesCollection.Count
For n = 1 To Feuil1.ChartObjects(1).Chart.SeriesCollection.Count
MinX(n) = WorksheetFunction.Min(Feuil1.ChartObjects(1).Chart.SeriesCollection(n).XValues) ': MsgBox n & " V" & MinX(n)
MaxX(n) = WorksheetFunction.Max(Feuil1.ChartObjects(1).Chart.SeriesCollection(n).XValues) ': MsgBox n & " V" & MaxX(n)
MaxY(n) = WorksheetFunction.Max(Feuil1.ChartObjects(1).Chart.SeriesCollection(n).Values) ': MsgBox n & " V" & MaxY(n)
MinY(n) = WorksheetFunction.Min(Feuil1.ChartObjects(1).Chart.SeriesCollection(n).Values) ': MsgBox n & " V" & MinY(n)
Next
MinAxeY = MinY(1)
MaxAxeY = MaxY(1)
For i = 1 To n - 1
MinAxeX = MinX(i): MaxAxeX = MaxX(i)
'Stop
If MinY(i) < MinY(i + 1) And MinAxeY >= MinY(i) Then MinAxeY = MinY(i)
If MaxY(i) > MaxY(i + 1) And MaxAxeY <= MaxY(i) Then MaxAxeY = MaxY(i)
Next
If MinY(n - 1) < MinAxeY Then MinAxeY = MinY(n - 1)
MsgBox MinAxeX & " " & MaxAxeX & " " & MinAxeY & " " & MaxAxeY
End Sub