Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Excel importing of .csv and .xml

OK, I see that Excel in various versions (2000, xp) is stupid when it
imports .csv and .xml in certain ways. Specifically, a string of '01503'
comes in as numeric data of 1503 in both formats, notwithstanding that in
both files they appear as '01503'. However, if the csv file has a .txt
extension, it will first require that you specify certain import
instructions, such as delimiter, data type, etc, and then it will import it
correctly!

Here's my question: how can I automate this process, so that it can be
imported correctly without having to 'trick' Excel (and, by the way, an xml
version does not give me any 'trick the system' opportunity).

Thanks for any help,

Bernie Yaeger


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel importing of .csv and .xml

Write your own smart parser.

--
Regards,
Tom Ogilvy


"Bernie Yaeger" wrote in message
. ..
OK, I see that Excel in various versions (2000, xp) is stupid when it
imports .csv and .xml in certain ways. Specifically, a string of '01503'
comes in as numeric data of 1503 in both formats, notwithstanding that in
both files they appear as '01503'. However, if the csv file has a .txt
extension, it will first require that you specify certain import
instructions, such as delimiter, data type, etc, and then it will import

it
correctly!

Here's my question: how can I automate this process, so that it can be
imported correctly without having to 'trick' Excel (and, by the way, an

xml
version does not give me any 'trick the system' opportunity).

Thanks for any help,

Bernie Yaeger




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Excel importing of .csv and .xml

Very helpful Tom. Gee, what would we do without helpful folks like you!


"Tom Ogilvy" wrote in message
...
Write your own smart parser.

--
Regards,
Tom Ogilvy


"Bernie Yaeger" wrote in message
. ..
OK, I see that Excel in various versions (2000, xp) is stupid when it
imports .csv and .xml in certain ways. Specifically, a string of

'01503'
comes in as numeric data of 1503 in both formats, notwithstanding that

in
both files they appear as '01503'. However, if the csv file has a .txt
extension, it will first require that you specify certain import
instructions, such as delimiter, data type, etc, and then it will import

it
correctly!

Here's my question: how can I automate this process, so that it can be
imported correctly without having to 'trick' Excel (and, by the way, an

xml
version does not give me any 'trick the system' opportunity).

Thanks for any help,

Bernie Yaeger






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
Importing Alan Beban's code on Arrays; Importing a module or a project Steve G Excel Worksheet Functions 4 August 27th 07 04:18 PM
Importing from access to excel justlearnin Excel Discussion (Misc queries) 0 March 28th 07 09:36 PM
Importing from Excel Amy Excel Discussion (Misc queries) 1 March 31st 06 03:09 PM
importing into excel jason2444 Excel Discussion (Misc queries) 1 March 29th 06 10:05 PM
Importing data into excel Martina Excel Worksheet Functions 7 June 27th 05 08:11 AM


All times are GMT +1. The time now is 02:02 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"