ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to conditional format a cell if the cell contains a formula (U (https://www.excelbanter.com/excel-worksheet-functions/245027-how-conditional-format-cell-if-cell-contains-formula-u.html)

marzomarz

how to conditional format a cell if the cell contains a formula (U
 
I've used this UDF:

Function IsFormula(cell_ref As Range)
IsFormula = cell_ref.HasFormula
End Function


but I want to highlight several rows and this requires me to do the
conditional formating as formula=formula(cell ref).


T. Valko

how to conditional format a cell if the cell contains a formula (U
 
I want to highlight several rows and this requires me to
do the conditional formating as formula=formula(cell ref).


I interpret that to mean you use the Formula Is option in conditional
formatting. So the correct formula would be:

=IsFormula(cell_ref)

Replacing cell_ref with the appropriate cell address.

--
Biff
Microsoft Excel MVP


"marzomarz" wrote in message
...
I've used this UDF:

Function IsFormula(cell_ref As Range)
IsFormula = cell_ref.HasFormula
End Function


but I want to highlight several rows and this requires me to do the
conditional formating as formula=formula(cell ref).





All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com