PeterBunde
New Member
- Joined
- Dec 7, 2016
- Messages
- 45
Fellow sufferers!
I just want to make a pie chart from arrays holding the values. Please see my code below, which loads the array review_statae into memory.
I want to do something like below.
I did lots of googling, never found the right way to do it.
Code that loads the array into memory:
I just want to make a pie chart from arrays holding the values. Please see my code below, which loads the array review_statae into memory.
I want to do something like below.
I did lots of googling, never found the right way to do it.
Code:
Public Function piechart_build(url As String)
[buids the pie chart with the categories START, ACCEPT, REJECT and assigns the relative weight. START is blue, Accept is green and REJECT is red]
End Function
Code that loads the array into memory:
Code:
Public Function reboot_review_statae()
Dim url_pointer As Integer
Dim onetotwenty As Integer
Dim status As String
Sheet_ ("Review (F1+F2)")
url_pointer = 1
While Value_(1, url_pointer * 4 - 1) <> ""
review_statae.Add Value_(1, url_pointer * 4 - 1), CreateObject("Scripting.Dictionary")
review_statae(Value_(1, url_pointer * 4 - 1)).Add "START", 0
review_statae(Value_(1, url_pointer * 4 - 1)).Add "REJECT", 0
review_statae(Value_(1, url_pointer * 4 - 1)).Add "ACCEPT", 0
For onetotwenty = 1 To 20
status = "NULL"
If Value_(onetotwenty * 13 - 4, url_pointer * 4 - 1) = "<" Then status = "START"
If Value_(onetotwenty * 13 - 3, url_pointer * 4 - 1) = "=" Then status = "REJECT"
If Value_(onetotwenty * 13 - 2, url_pointer * 4 - 1) = "ü" Then status = "ACCEPT"
If status <> "NULL" Then review_statae(Value_(1, url_pointer * 4 - 1))(status) = review_statae(Value_(1, url_pointer * 4 - 1))(status) + 1
Next onetotwenty
url_pointer = url_pointer + 1
Wend
End Function
Last edited: