Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Conditional format if a cell has a formula or if a percent or numb
I need to change the color of a cell that contains a complicated formula if
someone types in a value. Any Ideas? M |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Conditional format if a cell has a formula or if a percent or numb
If someone types in a value, there will no longer be a complicated formula.
You would be better off protecting that cell from editing using FormatCellProtection followed by ToolsProtectionProtect Sheet. But.....................to answer your question. Copy/paste this UDF to a General Module in your workbook. Function IsFormula(cell) Application.Volatile IsFormula = cell.HasFormula End Function Select the cell to change color and FormatConditional FormattingFormula is: Assuming the selection to be A1 Formula is: =NOT(IsFormula(A1)) Gord Dibben MS Excel MVP On Tue, 11 Jul 2006 20:41:02 -0700, wrightlife11 wrote: I need to change the color of a cell that contains a complicated formula if someone types in a value. Any Ideas? M |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Set conditional format to show when a sell contain a formula | Excel Discussion (Misc queries) | |||
enhanced conditional formatting | Excel Discussion (Misc queries) | |||
Cond. Format & Absolute Cell Reference Question | Excel Discussion (Misc queries) | |||
Possible Lookup Table | Excel Worksheet Functions | |||
How do I do conditional format based on a cell with a formula? | Excel Worksheet Functions |