Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default How to change the colour of a line

Hi,

I have a line on a worksheet and I would like to change the colour dependent
on a cell. How do I do the €˜change line colour part from say red to green.

Any help greatly appreciated.
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to change the colour of a line

Assume were are not talking about borders on cells, but a line from the
drawing toolbar:

activesheet.Shapes("Line 1").Line.ForeColor.RGB = _
Range("B9").Interior.Color

--
Regards,
Tom Ogilvy


"Chris" wrote:

Hi,

I have a line on a worksheet and I would like to change the colour dependent
on a cell. How do I do the €˜change line colour part from say red to green.

Any help greatly appreciated.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default How to change the colour of a line

Thanks Tom


"Tom Ogilvy" wrote:

Assume were are not talking about borders on cells, but a line from the
drawing toolbar:

activesheet.Shapes("Line 1").Line.ForeColor.RGB = _
Range("B9").Interior.Color

--
Regards,
Tom Ogilvy


"Chris" wrote:

Hi,

I have a line on a worksheet and I would like to change the colour dependent
on a cell. How do I do the €˜change line colour part from say red to green.

Any help greatly appreciated.
Thanks

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
Cut and paste line filled with colour slavenp Excel Discussion (Misc queries) 1 May 6th 08 03:24 PM
change a cell background colour to my own RGB colour requirements Stephen Doughty Excel Discussion (Misc queries) 4 June 16th 06 01:08 PM
Line colour of .SeriesCollection.NewSeries? Dr.Ile[_3_] Excel Programming 1 June 17th 05 07:54 PM
Colour part of a line on an X Y graph ExcelMonkey Charts and Charting in Excel 1 May 26th 05 10:57 AM
How do I change the colour of/remove the Freeze Panes line in Exce katya_1978 Excel Worksheet Functions 1 January 20th 05 06:17 PM


All times are GMT +1. The time now is 05:14 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"