dianemarie
Instructor
Hello, I would like to do a conditional formatting formula that says if the cell immediately to the left of B1 is a formula, highlight B1, otherwise don't highlight. Can I do this? Thank you for any help.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function GetFormula(cell As Range)
GetFormula = cell.HasFormula
End Function
"Gerald McInally" <gerald.mcinally@akermar.com> wrote...
>I am trying to use the GET.CELL function to work in
>Excel97.
>I have followed the instructions in article Q151449 from
>the MS knowlege base, but I always get an 'error in
>formula' message.
>Is there something I have to install or do to get this
>function (or is it a macro?) to work?
...
One thing the nice KB article DOESN'T mention is that if you copy any range
containing a cell formula dereferencing a defined name referring to an XLM
macro function and try to paste into another worksheet, you'll CRASH Excel
97 and 2K (others have confirmed that this has been fixed in XP). CRASH as
in Excel throws an exception and DIES, giving you NO CHANCE to save your
work. If you like unnecessary thrills, go for it. Otherwise wrap your XLM
calls inside VBA udfs (or dispense with XLM entirely and just use VBA udfs).