Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Remove the apostrophe (') in Excel cell text values | Excel Discussion (Misc queries) | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) | |||
How do I stop excel replacing numerical values with the date? | Excel Discussion (Misc queries) | |||
Importing text files into Excel | Excel Discussion (Misc queries) |