Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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" wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically change autoshape color to that of another autoshape | Excel Programming | |||
autoshape color conditional formating | Excel Discussion (Misc queries) | |||
Change color of an autoshape | Excel Programming | |||
Change color of Autoshape in chart | Excel Programming | |||
How do I change the color Excel Autoshape using VBA? | Excel Programming |