E
Excel dweeb
I have values in a variant array that I would like to sort; sometimes
the elements will be text, sometimes numbers. The trouble is that my
selection sort is treating even the numbers like text so that (quoting
from an earlier post by Dianne):
"If your column is populated with numbers, then it will sort
1,2,10,20.
If your column is populated with numeric text, then it will sort
1,10,2,20."
Is there a way to tell Excel (via VBA) to convert this numeric text to
numbers so that I can sort it properly programmatically? How to tell
if a specific column really contains text (like names) vs. numbers
will be another problem.
Any help greatly appreciated.
the elements will be text, sometimes numbers. The trouble is that my
selection sort is treating even the numbers like text so that (quoting
from an earlier post by Dianne):
"If your column is populated with numbers, then it will sort
1,2,10,20.
If your column is populated with numeric text, then it will sort
1,10,2,20."
Is there a way to tell Excel (via VBA) to convert this numeric text to
numbers so that I can sort it properly programmatically? How to tell
if a specific column really contains text (like names) vs. numbers
will be another problem.
Any help greatly appreciated.