Asked By
toni boyer
0 points
N/A
Posted on - 11/29/2011
Please enumerate the steps on how to auto generate graphs in Excel that will display the results found during a test.
The number of issues and type of issues found in the test should also be seen on the auto generated graph.
Is this possible?
Auto Generate Graphs in Excel
If all that exists on the worksheet is your data, we can write code that
plots each row of the used range, as this macro does:
Sub OneChartPerRow()
Dim rCat As Range
Dim rVal As Range
Dim rUsed As Range
Dim iRow As Long
Dim cht As Chart
Set rUsed = ActiveSheet.UsedRange
Set rCat = rUsed.Rows(1)
For iRow = 2 To rUsed.Rows.Count
Set rVal = rUsed.Rows(iRow)
Set cht = Charts.Add
cht.Name = rVal.Cells(1, 1)
With cht
.SetSourceData Source:=Union(rCat, rVal)
.HasTitle = False
.HasTitle = True
With .ChartTitle
.Text = rVal.Cells(1, 1)
End With
End With
Next
End Sub
That's it.