Veröffentlicht 7. März 200322 j Hallo, weiss jemand von euch vll., wie ich die Farben der Balken eines mit MSChart erstellten Diagramms ändern kann? Danke & viele Grüße, Chris;-)
10. März 200322 j Hi Zeichne doch ein Makro auf wie du die Farben des Diagramms manuell änderst... wenn du dann in den quellcode des Makros schaust siehst du wie man das in VB macht
10. März 200322 j oh sorry hab ich wohl zu schnell gelesen ich dachte du willst in VBA ein Excel diagramm ändern wie man das in VB macht mit dem MSChart weiß ich leider nicht sry
12. März 200322 j versuch es mal damit Private Sub cmdFormat_Click() ' First, change the chart type to a 3D chart to ' see all the parts of the plot. MSChart1.chartType = VtChChartType3dArea ' Color the backdrop light blue using ' the Plot object. With MSChart1.Plot.Backdrop ' No color will appear unless you set the style ' property to VtFillStyleBrush. .Fill.Style = VtFillStyleBrush .Fill.Brush.FillColor.Set 100, 255, 200 ' Add a border. .Frame.Style = VtFrameStyleThickInner ' Set style to show a shadow. .Shadow.Style = VtShadowStyleDrop End With ' Color the wall of the plot yellow. With MSChart1.Plot ' Set the style to solid. .Wall.Brush.Style = VtBrushStyleSolid ' Set the color to yellow. .Wall.Brush.FillColor.Set 255, 255, 0 End With With MSChart1.Plot ' Color the plot base blue. .PlotBase.BaseHeight = 200 .PlotBase.Brush.Style = VtBrushStyleSolid .PlotBase.Brush.FillColor.Set 0, 0, 255 End With End Sub Guido
12. März 200322 j schau mal in Richtung VTColor.Set(R,G, sollte hiermit evtl. möglich sein kann es aber nicht genau sagen da ich selber noch nie mit dem MSChart Control gearbeitet habe.
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.