Number displayed as text difficulties
In message of Mon, 7 May 2012 13:08:09
in microsoft.public.excel.programming, Claus Busch <claus_busch@t-
online.de writes
Hi Walter,
[commenting on the suggestion of Columns(5).NumberFormat = "000"]
and you only have to enter 7 to get the result 007
Danke Claus,
I am not comfortable with that as my data is naturally 3 digit strings.
It does however seem to be the easiest way of handling it.
I will go with it and leave the following questions unanswered:
1) Why does "'000" display as 000?
2) Why is Range("A1").Errors.Item(xlNumberAsText).Value = True OK, but
Columns(5).Errors.Item(xlNumberAsText).Value = True gets 1004?
I do not understand NumberFormat as well as I ought.
I find help on it obscure.
--
Walter Briscoe
|