Sheets("feuil1" ).Activate
Range(ActiveSheet.Cells(3 + k, 6), ActiveSheet.Cells(4 + k, 6 + nbinc)).Select
Application.CutCopyMode = False
Charts.Add
ActiveChart.ChartType = xlXYScatter
ActiveChart.Location Where:=xlLocationAsObject, Name:="Feuil1"
ActiveChart.SetSourceData Source:=Sheets("feuil1" ).Range(ActiveSheet.Cells(3 + k, 6), ActiveSheet.Cells(4 + k, 6 + nbinc)), PlotBy _
:=xlColumns_
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "déflexion"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = _
"hauteur du pieu (m)"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "déflexion (m)"
End With |