Hello all, I have the following if statement:
The isNumber function returns true or false. I know this should return true but it is not catching the condition in the if statment.
Any ideas?
Edit: Also tried to output the value of the function with a msgbox and got back nothing.
Code:
If Application.WorksheetFunction.IsNumber(Application.WorksheetFunction.Search(" " & ActiveCell & " ", " " & "MyText" & " ")) = True _
then
someVariable = 1
Any ideas?
Edit: Also tried to output the value of the function with a msgbox and got back nothing.