G Guest May 18, 2006 #1 Is there a way to use conditional formatting to highlight any cells on a worksheet that contain a formula?
Is there a way to use conditional formatting to highlight any cells on a worksheet that contain a formula?
B Bob Phillips May 18, 2006 #2 Add a custom function like Function Is(rng As Range) As Boolean If rng.Count > 1 Then IsFormula = CVErr(xlErrValue) Else IsFormula = rng.HasFormula End If End Function and use =IsFormula(A1) in the CF -- HTH Bob Phillips (remove xxx from email address if mailing direct)
Add a custom function like Function Is(rng As Range) As Boolean If rng.Count > 1 Then IsFormula = CVErr(xlErrValue) Else IsFormula = rng.HasFormula End If End Function and use =IsFormula(A1) in the CF -- HTH Bob Phillips (remove xxx from email address if mailing direct)
G Guest May 18, 2006 #3 The following page shows a good example of using a custom function with conditional formatting: http://www.bettersolutions.com/excel/EPX299/YI418210881.htm regards
The following page shows a good example of using a custom function with conditional formatting: http://www.bettersolutions.com/excel/EPX299/YI418210881.htm regards
D Dave Peterson May 18, 2006 #4 Just a typo alert: Function Is(rng As Range) As Boolean should be: Function IsFormula(rng As Range) As Boolean
Just a typo alert: Function Is(rng As Range) As Boolean should be: Function IsFormula(rng As Range) As Boolean