Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You're welcome. Glad to help.
On Mon, 2 Jan 2006 14:52:13 +0100, "VALid" wrote: Oh... Trivial! Thanks a lot, I'll correct that way. "Ron Rosenfeld" a écrit dans le message de news: ... On Mon, 2 Jan 2006 14:34:04 +0100, "VALid" wrote: Hi, I wrote that very simple function.... which does NOT work. Any idea why??? Thanks. Public Function SetCellColor(ByVal AnIndex As Long) 'Application.Volatile (True) With Selection.Interior .ColorIndex = AnIndex .Pattern = xlSolid .PatternColorIndex = xlAutomatic End With SetCellColor = AnIndex End Function A function can only return a value. You need to formulate a Sub in order to affect a cell's appearance. --ron --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditionial formatting for merged cells, function Len($A$4) | Excel Worksheet Functions | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
difficulty with conditional formatting | Excel Discussion (Misc queries) | |||
Conversion | Excel Worksheet Functions | |||
How can I use an IF function to look for specific cell formatting. | Excel Worksheet Functions |