Problem: I want to hi-light all cells that contain a formula - but by using a macro, so that I can later un-hi-light that same range. In other words, I want to easily see where formulas have replaced hard numbers, and then revert back just as quickly. I realize that there is a "Show Formulas" menu option, but it is messy, and it does not make the relevant cells any more visible.
Currently, I can hi-light the cells by creating the following user-defined function:
...and then using conditional formatting over a range, using the "formula to determine which cells...." as follows:![]()
Please Login or Register to view this content.
=IsFormula(A1) ..... [applied to a range, of course]
This works great. But now I want to have a macro (button) create that condition, with another macro button to delete the condition. Excel will allow a macro to delete conditions just fine. And Excel will allow a macro to create conditions based on cell values, etc. But Excel does not seem to allow a macro to create a condition based on a user-defined function.
If I record a macro of my steps, I get the following:
The problem is that nothing happens. When I check the conditional formatting rules, it says "No Format Set."![]()
Please Login or Register to view this content.
Any help would be appreciated.
Bookmarks