Re: microsoft graph color palette
From: Steve Rindsberg (abuse_at_localhost.com)
Date: 09/29/04
- Next message: Thor: "dictionary or word list(spell check)"
- Previous message: Tushar Mehta: "Re: Simple Macro"
- In reply to: anonymous_at_discussions.microsoft.com: "Re: microsoft graph color palette"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Sep 2004 10:59:41 EDT
> It seems that VBA does not recognize RGB values, because
> it does not allow me to change colors of series to an RGB
> value within a chart either.
> This is what I tried (And this code can also be looked up
> in several sources VBA Graph Help, MSDN library) :
>
> Sub changeseriecolor()
> Set myChart = ActiveWindow.Selection.ShapeRange(1) _
> ..OLEFormat.Object.Application.chart
> myChart.SeriesCollection(2).Interior.Color _
> = RGB(Red:=2, Green:=110, Blue:=6)
> End Sub
>
> And indeed then the color will be replaced by an index
> color. It is very confusing I think when both the Help
> file and MSDN library gives this code and it does not work.
Yes, it is. That's one of the reasons I trust the advice I get here more than
what appears in Help and MSDN.
- Next message: Thor: "dictionary or word list(spell check)"
- Previous message: Tushar Mehta: "Re: Simple Macro"
- In reply to: anonymous_at_discussions.microsoft.com: "Re: microsoft graph color palette"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|