LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default text format in csv file

If you rename the file to have a .txt extension, then you can use opentext
to specify that the column be brought in as Text.

If you leave the extension as .csv, then excel will ignore you and do what
it wants.

Regards,
Tom Ogilvy


"Ramissah" ` wrote in message
...
I have a file that has a text field that has leading zeros
in a csv format. When I open the csv file the leading
zeros are deleted. I created a function to add the zeros
back to the field. However, I do not know how I can force
the field to remain a text field and preserve the leading
zeros.

Any suggestions?

TIA,
ramissah



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
text ASCII file format Clovis Costa Excel Discussion (Misc queries) 2 June 19th 09 05:21 PM
Number in text format in CSV file mewild58 Excel Discussion (Misc queries) 4 June 3rd 09 02:21 PM
Text file to Excel format thalapathy Excel Discussion (Misc queries) 4 April 13th 09 06:56 AM
text file format to xls [email protected] Excel Discussion (Misc queries) 1 April 22nd 06 07:58 PM
Why will Excel will not save text format in a .csv file davis Excel Worksheet Functions 1 January 25th 06 05:44 PM


All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"