PC Review


Reply
Thread Tools Rate Thread

Changing the Colour of a Line with VBA?

 
 
baconcow
Guest
Posts: n/a
 
      5th May 2008
Another thing I have just been stumped by is how to change the colour of the
main line with visual basic. I figured out how to change the marker fill
colour. I know how to use the RGB( x, y, z) command, but I do not know what
comes before this.

The equivalent:

Format Axis -> Line Color -> Solid Line -> RGB( x, y, z)

Thanks again
 
Reply With Quote
 
 
 
 
baconcow
Guest
Posts: n/a
 
      5th May 2008
I found the answer from one of Jon Peltier older archived post. This is the
code I ended up using.

ch111.SeriesCollection(1).Border.Color = RGB(31, 73, 125) 'dark blue, text 2

Thanks for the help Jon!


"baconcow" wrote:

> Another thing I have just been stumped by is how to change the colour of the
> main line with visual basic. I figured out how to change the marker fill
> colour. I know how to use the RGB( x, y, z) command, but I do not know what
> comes before this.
>
> The equivalent:
>
> Format Axis -> Line Color -> Solid Line -> RGB( x, y, z)
>
> Thanks again

 
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
Tracking changes - author colour colour changing bradsmih Microsoft Word Document Management 5 25th Jan 2010 02:36 AM
xl 2000 - changing chart colour doesn't update legend colour insert your name here Microsoft Excel Discussion 2 10th Sep 2006 09:25 AM
Changing line colour by action johncouzins Microsoft Excel Discussion 2 1st May 2006 11:13 AM
Changing the Colour of an Auto Shape (Line) d.i.barr Microsoft Excel Programming 5 23rd Jun 2005 10:48 AM
Changing font colour of subject line in an Outlook Email =?Utf-8?B?QW50aG9ueQ==?= Microsoft Outlook Discussion 1 21st Dec 2003 08:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:17 PM.