Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Retaining leading Zeros in csv file

by igelkott (Priest)
on Jul 03, 2008 at 18:48 UTC ( [id://695437]=note: print w/replies, xml ) Need Help??


in reply to Retaining leading Zeros in csv file

Not a perfect solution but a leading single quote (') is enough to prevent excel's auto-conversion.

The only catch is that when the data is read from a file, the quote will be visible until the cell is reevaluated (eg, cursor hitting return after the cursor is in the cell for editing). Might try a simple macro to touch each cell?

The "call it a text file" approach seems better but this is an alternative if a text file is inconvenient.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://695437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-23 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found