[1] buf = Left(sArray(counter), 12) [2] I = InStr(buf, " ") [3] a = I - 2 [4] name = Left(buf, a)
I get a "Run Time Error '5' - Invalid procedure call or argument" on line 4 (the numbers in the code box are the lines.
Anyone know what the problem is? From what I know, it should work.
