I'm trying to store zip codes in a spreadsheet but am getting issues
with items that start with a 0.
The code I am using is:
<B>Cells(1,15) = "06555"</B>
The end result is showing up as 6555 in Excel - how do I get it to
show 06555?
Tom Ogilvy - 13 Sep 2007 19:54 GMT
<B>Cells(1,15) = "'06555"</B>
note added single quote.

Signature
Regards,
Tom Ogilvy
> I'm trying to store zip codes in a spreadsheet but am getting issues
> with items that start with a 0.
[quoted text clipped - 5 lines]
> The end result is showing up as 6555 in Excel - how do I get it to
> show 06555?
Dave Peterson - 13 Sep 2007 20:19 GMT
Another:
With activesheet.cells(1,15)
.numberformat = "@" 'text
.value = "06555"
End with
> I'm trying to store zip codes in a spreadsheet but am getting issues
> with items that start with a 0.
[quoted text clipped - 5 lines]
> The end result is showing up as 6555 in Excel - how do I get it to
> show 06555?

Signature
Dave Peterson