Hello,
I am on a slow long learning curve with VBA, I struggle with a few aspects but I persevere.
I have some rows data (Could be 10 rows could be 12 and so on)
I can create a chart for one row of data, but I do not want to do this for each row the long way.
I would appreciate some guidance on putting my code into a Loop? so the code will just create as many charts as there are rows. Here is my code for the first row of data used for a chart
Sub TryChrt()
Dim chrt As Chart
Set chrt = Charts.Add
Set chrt = chrt.Location(where:=xlLocationAsObject, Name:="Charts")
With chrt
.ChartType = xlColumnClustered
.SeriesCollection.NewSeries
.FullSeriesCollection(1).Values = "=Loading!$B$2:$AX$2"
.FullSeriesCollection(1).Name = "=Loading!$A$2"
.FullSeriesCollection(1).XValues = "=Loading!$B$1:$AZ$1"
.FullSeriesCollection(1).Select
.ChartGroups(1).GapWidth = 10
.HasLegend = False
End With
End Sub
Appreciate any assistance in this query
Thanks
JB
Bookmarks