Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I made a function in a new module with a function which looks like this: Public Function testColor() MsgBox Cells(1, 1).Interior.Color 'does work - displays e.g. 255 Cells(1, 1).Interior.Color = 10 'does NOT work - displays "#VALUE!" in the calling cell End Function This function gets called in a cell ("=testColor()"). The target would be to change the color of a cell with this VBA function. Sadly setting the color does not work, while I can perfectly read the color-code. Where's the mistake here? I'm using Excel 2007. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Different Font Color for results evaluated by "IF" | New Users to Excel | |||
set "value if true" to "fill cell with color" | Excel Programming | |||
Using the results of CELL function ("address" info type) | Excel Programming | |||
How can I make cell A1 a "Y" or "N" depending upon cell A2's font color? Please help. | Excel Programming |