Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I think the color you are referring to is wrong
Try the yellow or red from the standard color pallete. Yellow is 65535 or vbYellow. If cell.Interior.Color = vbYellow Then cell.Value = "100" OR If cell.Interior.Color = 65535 Then cell.Value = "100" If this post helps click Yes --------------- Jacob Skaria "Kirsty" wrote: I used this and it is still not working. Any suggestions? Set rng = Range("R5:Y8") For Each cell In rng If cell.Interior.Color = 4 Then cell.Value = "100" Next "Jacob Skaria" wrote: Sub Macro1() 'default yellow 65535 Set rngTemp = Range("A1:A10") For Each cell In rngTemp If cell.Interior.Color = 65535 Then cell.Value = "4" Next End Sub If this post helps click Yes --------------- Jacob Skaria "Kirsty" wrote: I want to write a macro (or formula) that allows me to place a number in a cell if it has a certain colour, ie 4. Any suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional colour fill a row - based on cell value =100% | Excel Worksheet Functions | |||
how do i autofill a cell a certain colour based on it's value? | Excel Worksheet Functions | |||
Condition based on cell colour | Excel Worksheet Functions | |||
Colour Cell based on Content | Excel Worksheet Functions | |||
How do I set a colour to 4 cells based on the value of a cell | Excel Discussion (Misc queries) |