Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not. is this possible? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() http://www.j-walk.com/ss/excel/usertips/tip045.htm Regards, Bill "ellebelle" wrote: I would like to colour code all the cells in my spreadsheet based on whether they contain a formula or not. is this possible? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
that is great, although what if i want the opposite effect. everytime i enter
a value manuallly i want to highlight it? "Bill Pfister" wrote: http://www.j-walk.com/ss/excel/usertips/tip045.htm Regards, Bill "ellebelle" wrote: I would like to colour code all the cells in my spreadsheet based on whether they contain a formula or not. is this possible? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Set the cells so that they are normally highlighted and use the conditional
formatting to make the cell appear normal when the condition is true. Instead of using the formula ("CellHasFormula") as a named-range, you can use a user-defined function in the condition. Put this code in any module of the workbook: public function IsConstant() IsConstant = not(application.caller.hasformula) end function Then use "=IsConstant()" as your formula in the conditional formatting. "ellebelle" wrote: that is great, although what if i want the opposite effect. everytime i enter a value manuallly i want to highlight it? "Bill Pfister" wrote: http://www.j-walk.com/ss/excel/usertips/tip045.htm Regards, Bill "ellebelle" wrote: I would like to colour code all the cells in my spreadsheet based on whether they contain a formula or not. is this possible? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
that works, although can you get it to ignore empty cells?
"Bill Pfister" wrote: Set the cells so that they are normally highlighted and use the conditional formatting to make the cell appear normal when the condition is true. Instead of using the formula ("CellHasFormula") as a named-range, you can use a user-defined function in the condition. Put this code in any module of the workbook: public function IsConstant() IsConstant = not(application.caller.hasformula) end function Then use "=IsConstant()" as your formula in the conditional formatting. "ellebelle" wrote: that is great, although what if i want the opposite effect. everytime i enter a value manuallly i want to highlight it? "Bill Pfister" wrote: http://www.j-walk.com/ss/excel/usertips/tip045.htm Regards, Bill "ellebelle" wrote: I would like to colour code all the cells in my spreadsheet based on whether they contain a formula or not. is this possible? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Public Function IsConstant() If (Len(Application.Caller.Value) = 0) Then IsConstant = False Else IsConstant = Not (Application.Caller.HasFormula) End If End Function "ellebelle" wrote: that works, although can you get it to ignore empty cells? "Bill Pfister" wrote: Set the cells so that they are normally highlighted and use the conditional formatting to make the cell appear normal when the condition is true. Instead of using the formula ("CellHasFormula") as a named-range, you can use a user-defined function in the condition. Put this code in any module of the workbook: public function IsConstant() IsConstant = not(application.caller.hasformula) end function Then use "=IsConstant()" as your formula in the conditional formatting. "ellebelle" wrote: that is great, although what if i want the opposite effect. everytime i enter a value manuallly i want to highlight it? "Bill Pfister" wrote: http://www.j-walk.com/ss/excel/usertips/tip045.htm Regards, Bill "ellebelle" wrote: I would like to colour code all the cells in my spreadsheet based on whether they contain a formula or not. is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Format | Excel Discussion (Misc queries) | |||
Conditional Format as a MACRO | Excel Worksheet Functions | |||
enhanced conditional formatting | Excel Discussion (Misc queries) | |||
Cond. Format & Absolute Cell Reference Question | Excel Discussion (Misc queries) | |||
How do I do conditional format based on a cell with a formula? | Excel Worksheet Functions |