On 2002-08-22 13:17, lovallee wrote:
Hello
Which formula can I use to test if a specified cell contains a formula?
Louis
=ExtCell("hasformula",A1)
returns 1 for yes, 0 for no.
Do a search on this site on ExtCell if interested adding it to your system.
You can use a VBA UDF (user defined function):Hi, I'm new to the website, and don't see how to "Do a search on this site on ExtCell".
Could you tell me how to do that? Or is it your other URL site where that Code is at?
Thanks, Dave
Function IsFormula(cell_ref As Range)
IsFormula = cell_ref.HasFormula
End Function
You have to place that code in a general macro module.Thank you.
I just tried this Code, and the result for both a cell with and without a formula was the error "#name?"
Thoughts, please?
Dave