I am using code to put passwords into excel. I found that if a password
is all numbers that excel will save it as a number instead of as text.
Is there a way to programatically set some property so the cell will be
text instead of a number?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: setting a data type in excel by Torgeir

Torgeir
Fri Mar 11 15:46:52 CST 2005

Erik Foreman wrote:

> I am using code to put passwords into excel. I found that if a password
> is all numbers that excel will save it as a number instead of as text.
> Is there a way to programatically set some property so the cell will be
> text instead of a number?
Hi

Add a ' in front of the value.


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx