PC Review


Reply
Thread Tools Rate Thread

CONTROL SHAPE COLOR

 
 
pacsol_mic
Guest
Posts: n/a
 
      6th Apr 2009
I AM TRYING TO INSERT A LINE AND MAKE IT RED BUT IT ISN'T WORKING

Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top + HEIGHT,
MYCELL.Left + Centerstart, MYCELL.Top).Select

With Selection
.Fill.ForeColor.RGB = RGB(10, 10, 10)
.NAME = "HEIGHT1"
End With
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      7th Apr 2009

> .Fill.ForeColor.RGB = RGB(10, 10, 10)


That is pretty close to 0, which is black. For red, use

..Fill.ForeColor.RGB = RGB(255,0,0)

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Mon, 6 Apr 2009 15:03:01 -0700, pacsol_mic
<(E-Mail Removed)> wrote:

>I AM TRYING TO INSERT A LINE AND MAKE IT RED BUT IT ISN'T WORKING
>
> Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top + HEIGHT,
>MYCELL.Left + Centerstart, MYCELL.Top).Select
>
> With Selection
> .Fill.ForeColor.RGB = RGB(10, 10, 10)
> .NAME = "HEIGHT1"
>End With

 
Reply With Quote
 
pacsol_mic
Guest
Posts: n/a
 
      7th Apr 2009
YEAH THE COLOR WAS NOT THE PROBLEM I HAVE RGB(255,0,0) BUT I AM GETTING AN
ERROR MESSAGE AT THAT .FILL LINE

"Chip Pearson" wrote:

>
> > .Fill.ForeColor.RGB = RGB(10, 10, 10)

>
> That is pretty close to 0, which is black. For red, use
>
> ..Fill.ForeColor.RGB = RGB(255,0,0)
>
> Cordially,
> Chip Pearson
> Microsoft Most Valuable Professional
> Excel Product Group, 1998 - 2009
> Pearson Software Consulting, LLC
> www.cpearson.com
> (email on web site)
>
>
> On Mon, 6 Apr 2009 15:03:01 -0700, pacsol_mic
> <(E-Mail Removed)> wrote:
>
> >I AM TRYING TO INSERT A LINE AND MAKE IT RED BUT IT ISN'T WORKING
> >
> > Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top + HEIGHT,
> >MYCELL.Left + Centerstart, MYCELL.Top).Select
> >
> > With Selection
> > .Fill.ForeColor.RGB = RGB(10, 10, 10)
> > .NAME = "HEIGHT1"
> >End With

>

 
Reply With Quote
 
pacsol_mic
Guest
Posts: n/a
 
      7th Apr 2009

IT RETURNS AN ERROR MESSAGE OF OBJECT DOESN'T SUPPORT THIS PROPERTY

THANK YOU FOR THE HELP


"Chip Pearson" wrote:

>
> > .Fill.ForeColor.RGB = RGB(10, 10, 10)

>
> That is pretty close to 0, which is black. For red, use
>
> ..Fill.ForeColor.RGB = RGB(255,0,0)
>
> Cordially,
> Chip Pearson
> Microsoft Most Valuable Professional
> Excel Product Group, 1998 - 2009
> Pearson Software Consulting, LLC
> www.cpearson.com
> (email on web site)
>
>
> On Mon, 6 Apr 2009 15:03:01 -0700, pacsol_mic
> <(E-Mail Removed)> wrote:
>
> >I AM TRYING TO INSERT A LINE AND MAKE IT RED BUT IT ISN'T WORKING
> >
> > Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top + HEIGHT,
> >MYCELL.Left + Centerstart, MYCELL.Top).Select
> >
> > With Selection
> > .Fill.ForeColor.RGB = RGB(10, 10, 10)
> > .NAME = "HEIGHT1"
> >End With

>

 
Reply With Quote
 
Modeste
Guest
Posts: n/a
 
      7th Apr 2009
BonsourĀ® pacsol_mic
*******************************
Please stop shouting!
*******************************

>>> I AM TRYING TO INSERT A LINE AND MAKE IT RED BUT IT ISN'T WORKING
>>>
>>> Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top +
>>> HEIGHT, MYCELL.Left + Centerstart, MYCELL.Top).Select
>>>
>>> With Selection
>>> .Fill.ForeColor.RGB = RGB(10, 10, 10)
>>> .NAME = "HEIGHT1"
>>> End With


Fill is not a property of the object Line !!!!

considere this :

Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top + HEIGHT, MYCELL.Left + Centerstart, MYCELL.Top).Select
Selection.ShapeRange.Line.ForeColor.RGB = RGB(255, 10, 10)
Selection.Name = "HEIGHT1"

HTH
 
Reply With Quote
 
pacsol_mic
Guest
Posts: n/a
 
      8th Apr 2009
Thank You it worked and sorry for the caps lock was in the process of making
labels



"Modeste" wrote:

> BonsourĀ® pacsol_mic
> *******************************
> Please stop shouting!
> *******************************
>
> >>> I AM TRYING TO INSERT A LINE AND MAKE IT RED BUT IT ISN'T WORKING
> >>>
> >>> Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top +
> >>> HEIGHT, MYCELL.Left + Centerstart, MYCELL.Top).Select
> >>>
> >>> With Selection
> >>> .Fill.ForeColor.RGB = RGB(10, 10, 10)
> >>> .NAME = "HEIGHT1"
> >>> End With

>
> Fill is not a property of the object Line !!!!
>
> considere this :
>
> Sheet40.Shapes.AddLine(MYCELL.Left + Centerstart, MYCELL.Top + HEIGHT, MYCELL.Left + Centerstart, MYCELL.Top).Select
> Selection.ShapeRange.Line.ForeColor.RGB = RGB(255, 10, 10)
> Selection.Name = "HEIGHT1"
>
> HTH
>

 
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
Fill color in shape Terje Microsoft Excel Worksheet Functions 4 10th Oct 2009 04:00 PM
Shape color macro Edwin Microsoft Excel Misc 0 5th Aug 2009 07:54 PM
Changing color of a shape Mike Microsoft Excel Programming 1 7th Aug 2008 08:29 PM
shape color dubo Microsoft Excel Misc 0 14th Apr 2007 01:31 PM
Change color and shape of Control Tip LCalaway Microsoft Access Forms 5 20th Oct 2004 02:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 AM.