My code is as follows:
Function my_if() As Boolean
my_if = Application.WorksheetFunction.If(True, True, False)
End Function
But I am getting #VALUE as a result. Why is that?
My code is as follows:
Function my_if() As Boolean
my_if = Application.WorksheetFunction.If(True, True, False)
End Function
But I am getting #VALUE as a result. Why is that?