G
Guest
How can I return the first space in a string using instr function.
Using the following I get the error 'invalid procedure call or argument'
However it works for other characters ok.
Bruce
Function myProduct(a As String)
myProduct = CStr(Left(a, InStr(a, " ") - 1))
End Function
Using the following I get the error 'invalid procedure call or argument'
However it works for other characters ok.
Bruce
Function myProduct(a As String)
myProduct = CStr(Left(a, InStr(a, " ") - 1))
End Function