PC Review


Reply
Thread Tools Rate Thread

AutoShape color

 
 
Nikki
Guest
Posts: n/a
 
      27th May 2009
I need to make a traffic light using circles- Only one would be "on" at a
time (this doesn't need to be part of the code though).
You would click it to make it fill with color and click again to turn it off.
Thank you for any help you can give. I have tried a number of coding options
and can't get the color part to work.
--
Thanks,
Nikki
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      27th May 2009

Sub FillShapeColour()
Static fOn As Boolean

With ActiveSheet.Shapes(Application.Caller)

If fOn Then

.Fill.Visible = msoFalse
Else

.Fill.Visible = msoTrue
.Fill.ForeColor.SchemeColor = 10
End If
End With

fOn = Not fOn
End Sub

--
__________________________________
HTH

Bob

"Nikki" <(E-Mail Removed)> wrote in message
news:2C44170F-8329-4C32-AB1F-(E-Mail Removed)...
>I need to make a traffic light using circles- Only one would be "on" at a
> time (this doesn't need to be part of the code though).
> You would click it to make it fill with color and click again to turn it
> off.
> Thank you for any help you can give. I have tried a number of coding
> options
> and can't get the color part to work.
> --
> Thanks,
> Nikki



 
Reply With Quote
 
Nikki
Guest
Posts: n/a
 
      27th May 2009
Thanks - that is perfect.
--
Thanks,
Nikki


"Bob Phillips" wrote:

>
> Sub FillShapeColour()
> Static fOn As Boolean
>
> With ActiveSheet.Shapes(Application.Caller)
>
> If fOn Then
>
> .Fill.Visible = msoFalse
> Else
>
> .Fill.Visible = msoTrue
> .Fill.ForeColor.SchemeColor = 10
> End If
> End With
>
> fOn = Not fOn
> End Sub
>
> --
> __________________________________
> HTH
>
> Bob
>
> "Nikki" <(E-Mail Removed)> wrote in message
> news:2C44170F-8329-4C32-AB1F-(E-Mail Removed)...
> >I need to make a traffic light using circles- Only one would be "on" at a
> > time (this doesn't need to be part of the code though).
> > You would click it to make it fill with color and click again to turn it
> > off.
> > Thank you for any help you can give. I have tried a number of coding
> > options
> > and can't get the color part to work.
> > --
> > Thanks,
> > Nikki

>
>
>

 
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
where is pick color option to fill autoshape color trma Microsoft Word New Users 0 27th Nov 2009 01:30 PM
Automatically Color Autoshape and Autoshape Naming Max Microsoft Excel Programming 2 9th Sep 2009 05:11 PM
Automatically change autoshape color to that of another autoshape T-bone Microsoft Excel Programming 2 24th Oct 2008 01:43 AM
How do I color different parts of a square autoshape? Damian Microsoft Powerpoint 2 11th Mar 2008 10:04 PM
Change color of an autoshape =?Utf-8?B?THk=?= Microsoft Excel Programming 5 29th Sep 2007 04:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:51 PM.