Hey,
I am trying to do a very easy user-defined function. I am trying to check if errors in one cell, returns black, otherwise returns what is in the cell.
Here is my formula:
Function errors(anything As Variant) As Variant
If IsError(anything) Then
errors = ""
Else
errors = anything
End If
End Function
But it does not work.... Is there anyone who could tell where it is wrong. I greatly appreciate it.
I am trying to do a very easy user-defined function. I am trying to check if errors in one cell, returns black, otherwise returns what is in the cell.
Here is my formula:
Function errors(anything As Variant) As Variant
If IsError(anything) Then
errors = ""
Else
errors = anything
End If
End Function
But it does not work.... Is there anyone who could tell where it is wrong. I greatly appreciate it.