I
Ingrid Makkinje
I am trying to change the fills color of a serie in an MS
Graph chart by using the code as listed below. I really
want to use an RGB value and not one of the colors from
the MS Graph palette. I hope someone can help me.
****************************************************
Sub changeseriecolor()
Set myChart = ActiveWindow.Selection.ShapeRange
(1).OLEFormat.Object
myChart.SeriesCollection(2).Interior.Color = RGB(Red:=2,
Green:=110, Blue:=6)
End Sub
I have also tried this:
Sub changeseriecolor()
Set myChart = ActiveWindow.Selection.ShapeRange
(1).OLEFormat.Object
myChart.SeriesCollection(2).Interior.Color = RGB(2, 110,
6)
End Sub
Graph chart by using the code as listed below. I really
want to use an RGB value and not one of the colors from
the MS Graph palette. I hope someone can help me.
****************************************************
Sub changeseriecolor()
Set myChart = ActiveWindow.Selection.ShapeRange
(1).OLEFormat.Object
myChart.SeriesCollection(2).Interior.Color = RGB(Red:=2,
Green:=110, Blue:=6)
End Sub
I have also tried this:
Sub changeseriecolor()
Set myChart = ActiveWindow.Selection.ShapeRange
(1).OLEFormat.Object
myChart.SeriesCollection(2).Interior.Color = RGB(2, 110,
6)
End Sub