Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Change Gradient Fill Colors of Bar Chart data points

Im trying to modify the gradient fill colors of single data points on a bar
charts (in Excel 2007). The bar chart already has gradient fills defined
manually.
I think I need to alter different child properties of .Interior, not the
..ColorIndex property that would apply to non-gradient fills. Ive waded
through the object model and help file and tried all kind of syntaxes, but
cant get at the gradient without raising an error such as Run-time error
1004: Application-defined or Object-defined error or Run-time error
438: Object doesnt support this property or method. Recording a macro of
my setting this manually doesnt help me since Excel does not record any of
these steps in VBA!!
I have tried the following:
..Interior.Gradient.InteriorGradientStop(1).Gradie ntStopColorIndex= RGB(a,b,c)
..Interior.InteriorGradientStop(1).GradientStopCol orIndex= RGB(a,b,c)
..Interior.Gradient.Colorstops(1).ColorIndex = RGB(a,b,c)
(all the above with ActiveChart.SeriesCollection(1).Points(1) either
referenced or selected)
..Gradient.ColorStops.Clear raises an error as well!

Im sure this is something simple, but I just cant get it!
Any help much appreciated.
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change Gradient Fill Colors of Bar Chart data points


perhaps the likes of:


VBA Code:
--------------------


Sheets("Chart1").SeriesCollection(1).Points(4).For mat.Fill.ForeColor.RGB = RGB(112, 222, 123)
Sheets("Chart1").SeriesCollection(1).Points(4).For mat.Fill.BackColor.RGB = RGB(0, 0, 5)

--------------------


?


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: http://www.thecodecage.com/forumz/member.php?u=558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=204339

http://www.thecodecage.com/forumz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,180
Default Change Gradient Fill Colors of Bar Chart data points

Excel 2007 Chart
Macro, fill color gradient.
http://c0718892.cdn.cloudfiles.racks...05_21_10a.xlsm
Pdf preview:
http://www.mediafire.com/file/ewzzhy2yedd/05_21_10a.pdf
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change gradient color in chart for Excel 2007 NonTechie Charts and Charting in Excel 6 May 9th 23 03:43 AM
How do I select two colors for Gradient Fill Excel 2007 Hennie[_2_] Charts and Charting in Excel 1 August 14th 09 09:15 AM
Change pattern for individual data points on chart JimT Excel Programming 1 December 9th 08 10:40 PM
Excel bar chart formatting of bars to change colors as data change JudyT Excel Discussion (Misc queries) 1 January 24th 07 06:07 PM
Can I change the colors in the fill color chart? Genesis Pat Excel Discussion (Misc queries) 2 March 28th 06 07:51 PM


All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"