OK, but another thing I missed before is that if you need to call Trim first, then you should also call Trim inside the IsNumeric call.
I've been writing VBA code since the mid-1990s, before that XLM and Lotus 1-2-3 macros in addition to other languages. I haven't come across the type of inconsistency you mention. Something like the following has always worked for me AS LONG AS all spaces are ASCII spaces rather than HTML nonbreaking spaces or other exotica.
If the source of the values are cell values, always best to ensure you're not dealing with an error value.
Note that for blank cells, LTrim$(x) returns "".
The only thing I know of which would screw this up would be characters which appear to be spaces which aren't ASCII spaces at the beginning of cell values. That's a data cleansing exercise.
Bookmarks