ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional formatting if a formula is replaced by value (https://www.excelbanter.com/excel-discussion-misc-queries/182967-conditional-formatting-if-formula-replaced-value.html)

mrbucc

Conditional formatting if a formula is replaced by value
 
I would like to set up a conditional formatting in case a cell is changed
from a formula to a text value. I can protect the cells is an option but
there are times when I will change the formula to a text but I would like to
highlight yellow.

Ken Johnson

Conditional formatting if a formula is replaced by value
 
On Apr 9, 9:18 am, mrbucc wrote:
I would like to set up a conditional formatting in case a cell is changed
from a formula to a text value. I can protect the cells is an option but
there are times when I will change the formula to a text but I would like to
highlight yellow.


Perhaps this User Defined Function could be used in the "Formula Is"
part of the conditional formatting...

Public Function NowText(Cell As Range) As Boolean
NowText = Not Cell.HasFormula
End Function

Ken Johnson


All times are GMT +1. The time now is 12:00 AM.

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