Hi,
I'm using VBA for Excel 2003, and I'm trying to parse a string...
I can use the Mid() function without any errors, but I'm trying to find the position of the first space in the string using:
and it gives me:
Am I trying to do something too logical for VBA to handle?
I don't see any syntax errors with that statement, and I don't see anything wrong with the arguments. Here are their values:
iStart = 0
strText = "107 Pass" & vbLf & "9 Fail" & vbLf & "6 Untested
I'm using VBA for Excel 2003, and I'm trying to parse a string...
I can use the Mid() function without any errors, but I'm trying to find the position of the first space in the string using:
Code:
iEnd = InStr(iStart, strText, " ")
Run-time error '5':
Invalid procedure call or argument
Am I trying to do something too logical for VBA to handle?
I don't see any syntax errors with that statement, and I don't see anything wrong with the arguments. Here are their values:
iStart = 0
strText = "107 Pass" & vbLf & "9 Fail" & vbLf & "6 Untested