#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Text Format

Hi,

I have a csv file with values like "01-03-01", and when i
open this file in Excel this value is automatically
converted into Date format. How to avoid this?.

i want the text to just displayed as "01-03-01" when the
file is opened in excel without getting converted!. is
there a way to do this?

thanks,
Shiv
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text Format

Hi Shiv,
Are u importing thru excel interface or programmatically? Thru Excel
if u use
Data-Import External Data-Import Data and then select the CSV file
and follow the steps, u can modify the data type of the desired column
from MDY to Text.

If programmatically, then to the opentext method you can give in
FieldInfo, array specifying the data types of columns.

Hope this helps.
Regards,
Mahesh
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Text Format

Change the name of the file to a txt file.
Then open the file and the open text files Wizard will be
openned
then you select delimited by
select comma as the delimiter
then you select the column with your data and select TEXT

your data will not be converted to date



Francisco Mariscal



-----Original Message-----
Hi,

I have a csv file with values like "01-03-01", and when i
open this file in Excel this value is automatically
converted into Date format. How to avoid this?.

i want the text to just displayed as "01-03-01" when the
file is opened in excel without getting converted!. is
there a way to do this?

thanks,
Shiv
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text Format



No, i am not doing it programatically. I just generate the CSV file and
my customers need to view that file merely by double clicking the file
without going thro any wizards!.

is there a way of having default excel template which will not convert
the data into date format?

thanks,
Shiv

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Change Date Format to Specific Text Format When Copying [email protected] Excel Discussion (Misc queries) 4 December 23rd 08 03:43 PM
Change number (in text format) to numeric format Pam Excel Discussion (Misc queries) 5 October 24th 05 07:45 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM
How do i change numbers in text format to number format? Greg New Users to Excel 1 December 14th 04 05:22 PM


All times are GMT +1. The time now is 02:55 PM.

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"