ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto Cell Shading (https://www.excelbanter.com/excel-programming/413869-auto-cell-shading.html)

Steve

Auto Cell Shading
 
Is there a way to create a code that will automatically shade a cell yellow
when someone overwrites a formula with a hard number?

Please help,

Steve

ryguy7272

Auto Cell Shading
 
http://www.j-walk.com/SS/excel/usertips/tip045.htm

Regards,
Ryan---


--
RyGuy


"Steve" wrote:

Is there a way to create a code that will automatically shade a cell yellow
when someone overwrites a formula with a hard number?

Please help,

Steve


Don Guillett

Auto Cell Shading
 
One way. Put this in a REGULAR module. Then use conditional formatting
=hf(h2)
Of course, that will also color text.

Function hf(x)
hf = x.HasFormula
End Function

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steve" wrote in message
...
Is there a way to create a code that will automatically shade a cell
yellow
when someone overwrites a formula with a hard number?

Please help,

Steve




All times are GMT +1. The time now is 12:55 PM.

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