Stretchwickster
Programmer
I generate a chart (xlColumnClustered) on a fresh worksheet in Excel. I then want to check if any of Y-Axis values are over 100. If a column is over 100 then I want to change the colour of that particular column to red. I can identify which value needs to be changed using the code below but how do I get direct access to a particular column and does it have its own colour/color property?
Clive ![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
Code:
Dim yValues
Dim i As Integer
Dim counter As Integer
yValues = ActiveChart.SeriesCollection(1).Values
counter = 0
For i = 1 To UBound(yValues)
If yValues(i) > 100 Then
counter = counter + 1
MsgBox counter
End If
Next i
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)