Hi everybody!
So I'm a total noob and have never used VBA before but I'm trying to automate the creation of 'radar charts' for work. I have a table that looks like this:
And I'm trying to automate the process of creating radar charts that look like this:
So far I've written this:
And I've gotten here:
A few things:
1. I've been trying to figure out how to change the x axis labels so that it will display the "skill" instead of a number, but can't figure out how to do it!
2. All the skills are out of 5, and some people don't have a 5 -- but how do I standardize it so 5 appears on all charts?
3. How do I get rid of the "person 5" description and line?
Any help would be appreciated. Thank you so much!
So I'm a total noob and have never used VBA before but I'm trying to automate the creation of 'radar charts' for work. I have a table that looks like this:
And I'm trying to automate the process of creating radar charts that look like this:
So far I've written this:
VBA Code:
Sub AddCharts()
Dim i As Integer 'Rows
Dim j As Integer 'Columns
i = Cells(Rows.Count, 1).End(xlUp).Row
For j = 2 To i
With ActiveSheet.Shapes.AddChart.Chart
.ChartType = xlRadar
.SeriesCollection.NewSeries
With .SeriesCollection(1)
.Name = "=" & ActiveSheet.Name & "!" & _
Cells(j, 1).Address
.Values = "=" & ActiveSheet.Name & "!" & _
Range(Cells(2, 2), Cells(2, 11)).Address
End With
End With
Next j
End Sub
And I've gotten here:
A few things:
1. I've been trying to figure out how to change the x axis labels so that it will display the "skill" instead of a number, but can't figure out how to do it!
2. All the skills are out of 5, and some people don't have a 5 -- but how do I standardize it so 5 appears on all charts?
3. How do I get rid of the "person 5" description and line?
Any help would be appreciated. Thank you so much!