I have just discovered some "inconsistent" behaviour between Excel's spreadsheet environment and its VBA environment.[ ] It involves the sort order of characters.[ ] In the spreadsheet, it is TRUE that ("_"<"X"), whereas in VBA it is FALSE.[ ] This anomaly tripped me up because I have a column of alphanumeric codes which I sort under spreadsheet control, then pass to VBA where I scan down it item by item.[ ] The codes do not contain any numeric characters, but they do occasionally contain an underscore character(_) because I have a deep psychological predisposition to avoid embedded blanks.
I'm not sure whether I am posting this as a query, or as a warning.
But it is certainly a significant PIA.
I'm not sure whether I am posting this as a query, or as a warning.
But it is certainly a significant PIA.