Phil, I sympathize. Did you import the data from a webpage? Are the
numbers visually left justified under general unjustified display
format?
/RantAgainstTheUnlisteningMachine on: I believe others agree that
there is a serious deficiency in Excel in not clearly delineating
internal representations for the user. Without going into properties
(maybe in VBA) it is virtually impossible to distinguish exactly what
a representation is (and I don't know if there is a magically
informative property - tell me if you know). Further complicating it
is the numerous kinds of "text." The thing under format? Single
apostrophe? Value-pasting? It is unforgivable that one can't hover or
hit format or right-click for properties and explicitly see the
difference between "this kind of text" vs. "that kind." Microsoft
needs to acknowledge that there is zero-length-string(ZLS) vs. Empty
vs. Nothing vs. Missing vs. Null vs. "" vs.Used (and vs. how many
others I don't immediately recall), and report what the software knows
to the user. Why do we have to WASTE TIME determining these?
Another example of different kinds of "text" : sometimes, when you
have a row of cells, all "seemingly" empty, LEN of zero (you can hit
the delete key on each of them to assert that)...the thing is,
sometimes you can end-right and it stops at the end of them. Other
times you go end-right and you end up at column IV. (And I'm not a
lowly beginner talking about neglecting invisible blanks (0X20) - the
LENs are 0. That's the kind of level 1 support answer typically
provided. Someone should do better.)
With ActiveSheet.UsedRange
..Value = .Value
End With
Why does the above do anything? Just what does it do? It is, perhaps
by malicious design, left to be a "mystery" to the user. No
"hovering". They've known about this for at least 20 years. (Biting
tongue about incompetence)
To take a whine break - though the whines do deserve attention and
action - here are some resources to understand empty state, etc.
Additions are welcome.
http://www.experts-exchange.com/Sof...Null-Empty-Blank-N-A-ZLS-Nothing-Missing.html
http://allenbrowne.com/vba-NothingEmpty.html
It's just that MS has ceased to support the Usenet newsgroups.
WTF? Tough economic times at one of the (if not "the") world's richest
companies? It wasn't broke, so they're fixing it.
Phil, sorry to invade your thread to rant about MS's cluelessness
about the user. I do believe that understanding the different internal
representations as I've raised may be enlightening to taking command
of your current dilemma. I am sympathetic - I've been there and wasted
substantial time with your very issue - and sorry I don't have a catch-
all reply. You have a strikingly generous offer by [highly qualified]
Don to look at it specifically.