Setting a line color in MS GRAPH from VB

  • Thread starter Thread starter DAACKM
  • Start date Start date
D

DAACKM

Can anyone explain how to programatically set the color of a line in a MS
Graph line or scatter chart. I can't seem to find the proper property.
Thanks.
 
Hi,

Some thing like this. Obviously changing the shape and series indexes to
suit.

With ActivePresentation.Slides(1).Shapes(3)
With .OLEFormat.Object.Application
.chart.seriescollection(1).Border.colorindex = 3 ' red
.Update
End With
End With

You can use RGB Values but like Excel this will be mapped to the nearest
palette colour.

.chart.seriescollection(1).Border.Color = RGB(0, 255, 0) ' green

Cheers
Andy
 
Back
Top