Sub graph()
Dim i As Integer
For i = 4 To 15
Range("A1:A" & i & ",B1:B" & i & ",D1:D" & i & ",F1:F" & i & ",M1:M" & i).Select
Range("AD4").Activate
Charts.Add
ActiveChart.ChartType = xlColumnClustered
ActiveChart.SetSourceData Source:=Sheets("Writing").Range("A1:A" & i & ",B1:B" & i & ",D1:D" & i & ",F1:F" & i & ",M1:M" & i) _
, PlotBy:=xlRows
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).Values = Range(Cells(9, i), Cells(12, i))
ActiveChart.SeriesCollection(2).Name = "=""Target"""
ActiveChart.SeriesCollection(3).Values = "=Writing!R4C39:R4C42"
ActiveChart.SeriesCollection(3).Name = "=""Nat. Exp."""
ActiveChart.Location Where:=xlLocationAsObject, Name:="Writing"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "Writing"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "End of Year"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Points"
End With
ActiveChart.SeriesCollection(2).Select
ActiveChart.SeriesCollection(2).ChartType = xlLineMarkers
ActiveChart.SeriesCollection(3).Select
ActiveChart.SeriesCollection(3).ChartType = xlLineMarkers
Next i
End Sub