J
Jacob
Hello all I am trying to write a custom function to do the work of my
current function, so that all I have to do is type the custom function
name in and select the cell. This is what I have so far, but is not
working for me. As I am new to Custom Functions some help would be
greatly appreciated.
This is the original function
=Left(A2,Search(" ",A2,1)-1)
This is what I am trying to use in VBA
Function LeftSearch(textStr As Variant)
LeftSearch = Left(textStr, Search(" ",textStr,1) - 1)
End Function
Thanks in Advance
Jacob
current function, so that all I have to do is type the custom function
name in and select the cell. This is what I have so far, but is not
working for me. As I am new to Custom Functions some help would be
greatly appreciated.
This is the original function
=Left(A2,Search(" ",A2,1)-1)
This is what I am trying to use in VBA
Function LeftSearch(textStr As Variant)
LeftSearch = Left(textStr, Search(" ",textStr,1) - 1)
End Function
Thanks in Advance
Jacob