I have a function where a string and a string-based array are passed in.
Using the VBE Watch function I can see the string passed in is:
The array contains:
The line:
is resolving to False, in other words it's skipping to the Else part, even when intCount = 0 or 1.
However if I run it when the string and array contain "TD1" it works fine.
Seems like either the /, space or & are causing issues?
Also posted here: http://www.mrexcel.com/forum/e…orrectly.html#post4594932