I tried it. I still get the same results. I'm wondering if this type of graph isn't what the code entails you should have. Any thoughts?
Code:
Option Compare Database
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim chtObj As Object
Dim j As Integer
Dim strType As String
Dim c1 As Long, c2 As Long, c3 As Long, c4 As Long, c5 As Long, c6 As Long
c1 = RGB(0, 0, 225)
c2 = RGB(0, 128, 0)
c3 = RGB(255, 255, 0)
c4 = RGB(255, 165, 0)
c5 = RGB(255, 0, 0)
c5 = RGB(255, 255, 255)
Set chtObj = Me.gphMPR.Object
For j = 1 To 6
strType = chtObj.SeriesCollection(j).Points(1).DataLabel.Text
Debug.Print strType
chtObj.SeriesCollection(j).Points(1).Interior.Color = Switch(strType = "Complete", c1, strType = "In Process", c2, strType = "Potential Delay", c3, strType = "At Risk", c4, strType = "Past Due", c5, strType = "Not Started", c6)
Next
End Sub
