Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming that this is a function called from a worksheet, you can't change
anything in a cell, only return a value. So you cannot set the font colour from within that worksheet function. -- HTH ------- Bob Phillips "Dave Dawson" wrote in message ... Using Excel 2k, I have this: ... If intCount / 12 50 Then intCount = 49.9 * 12 Selection.Font.ColorIndex = 3 Exit Do End If Loop CCPayoutYears = intCount / 12 End Function... in a function (CCPayoutYears) to compute years to pay off a credit card and want to set the cell to 49.9 if it is over 50 years and set the font color to red. intCount is the number of months accumulated in the loop. It doesn't work. What am I missing? Dave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox to change background color, font color and remove/ add bo | Excel Discussion (Misc queries) | |||
Conditional Format for font color using font color | Excel Worksheet Functions | |||
Changing Font color based on font type or size | Excel Discussion (Misc queries) | |||
How to change the default Border, Font Color, and Cell Color | Excel Discussion (Misc queries) | |||
My fill color and font color do not work in Excel Std Edition 2003 | Excel Discussion (Misc queries) |