PC Review


Reply
Thread Tools Rate Thread

change color of column chart

 
 
Robin
Guest
Posts: n/a
 
      24th Feb 2009
Hi
I am trying to change the FILL RGB color of a column chart and I am
struggling to find the correct syntax. For the line in a scatter graph, its
mySrs.Format.Line.ForeColor.RGB = RGB(186, 7, 0)
but what is the equivalent for a column chart?
Thanks!

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      24th Feb 2009
Assuming you are talking about Excel 2007, try

mySrs.Format.Fill.ForeColor.RGB = RGB(186, 7, 0)

Regards,
Peter R


"Robin" <(E-Mail Removed)> wrote in message
news:6FCEEC44-5C94-4BBB-B241-(E-Mail Removed)...
> Hi
> I am trying to change the FILL RGB color of a column chart and I am
> struggling to find the correct syntax. For the line in a scatter graph,
> its
> mySrs.Format.Line.ForeColor.RGB = RGB(186, 7, 0)
> but what is the equivalent for a column chart?
> Thanks!
>



 
Reply With Quote
 
Robin
Guest
Posts: n/a
 
      24th Feb 2009
Perfect, thanks Peter.

"Peter T" wrote:

> Assuming you are talking about Excel 2007, try
>
> mySrs.Format.Fill.ForeColor.RGB = RGB(186, 7, 0)
>
> Regards,
> Peter R
>
>
> "Robin" <(E-Mail Removed)> wrote in message
> news:6FCEEC44-5C94-4BBB-B241-(E-Mail Removed)...
> > Hi
> > I am trying to change the FILL RGB color of a column chart and I am
> > struggling to find the correct syntax. For the line in a scatter graph,
> > its
> > mySrs.Format.Line.ForeColor.RGB = RGB(186, 7, 0)
> > but what is the equivalent for a column chart?
> > Thanks!
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Color change for Column Chart John Microsoft Excel Programming 4 5th May 2010 03:11 AM
change color to selected columns in a stacked column chart Noa Microsoft Excel Charting 1 23rd Jan 2008 08:54 PM
Change column color in chart when column value is over/under goal Excel Charts Microsoft Excel Charting 2 10th Dec 2007 11:08 PM
Column A to change font color if column B is not empty dolphinv4 Microsoft Excel Misc 7 12th Aug 2004 01:24 AM
Dynamically change column color in chart Everett Microsoft Excel Programming 1 7th Aug 2003 02:00 AM


Features
 

Advertising
 

Newsgroups
 


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