Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Just Want a Label!
 
Posts: n/a
Default Stop Excel from converting text labels in CSV files to Values

I have a rather frustrating problem. We have a macro that extracts plant
codes from a list and creates a csv file of these codes. Many of these codes
have leading zeros, (ie. 0075, 0100, etc.) When this csv file is opened in
Excel, it converts the labels to values (ie. 75, 100, etc.). I have opened
the csv file in a text editor, and it shows the correct label - with leading
zeros. Is there a way to get Excel to open this file without converting the
text field to values?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Rename the file to extension *.txt, then the text import wizard will popup
when you open it, click next twice and select the column in question, then
under column data format select text

Regards,

Peo Sjoblom

"Just Want a Label!" wrote:

I have a rather frustrating problem. We have a macro that extracts plant
codes from a list and creates a csv file of these codes. Many of these codes
have leading zeros, (ie. 0075, 0100, etc.) When this csv file is opened in
Excel, it converts the labels to values (ie. 75, 100, etc.). I have opened
the csv file in a text editor, and it shows the correct label - with leading
zeros. Is there a way to get Excel to open this file without converting the
text field to values?

Reply
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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Remove the apostrophe (') in Excel cell text values Connull Excel Discussion (Misc queries) 5 January 11th 05 05:06 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
How do I stop excel replacing numerical values with the date? Becca C Excel Discussion (Misc queries) 2 December 21st 04 12:12 PM
Importing text files into Excel Christopher Anderson Excel Discussion (Misc queries) 2 December 4th 04 05:57 PM


All times are GMT +1. The time now is 05:46 AM.

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

About Us

"It's about Microsoft Excel"