Merci pour ta réponse Ferrand ca marche mais ce que j'aimerai c'est maintenant nommé ces tableaux. Je ne comprends pas pourquoi Excel m'indique une erreur si tu pouvais jeter un oeil.
End With
ActiveSheet.Shapes.AddChart(xlXYScatterSmooth).Name = "Y"
ActiveSheet.ChartObjects("Y").Activate
ActiveChart.ChartTitle.Select
Selection.Delete
ActiveChart.Legend.Select
Selection.Delete
ActiveChart.PlotArea.Select
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(1).XValues = "=Feuil2!$V$13:$V$16"
ActiveChart.SeriesCollection(1).Values = "=Feuil2!$W$13:$W$16"
Dim oChart As ChartObject
With ActiveSheet.ChartObjects("Y")
.Left = Range("AA10:AF16").Left
.Top = Range("AA10:AF16").Top
.Width = Range("AA10:AF16").Width
.Height = Range("AA10:AF16").Height
ActiveSheet.ChartObjects ("Y")
ActiveChart.Axes(xlCategory).Select
ActiveChart.Axes(xlCategory).CrossesAt = 0
ActiveChart.Axes(xlCategory).CrossesAt = -10
ActiveChart.Axes(xlValue).Select
ActiveChart.Axes(xlValue).MajorUnit = 20
End With
Sheets("Feuil1").Select
End Sub
C'est la première ligne qui pose problème. Merci