LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Import Text File Directly to an Array

Otherwise, you can do it yourself :
http://www.cpearson.com/excel/imptext.htm

NickHK

"NickHK" wrote in message
...
If you use DataImport Text File and follow the wizard, you can set the
delimiter to a " ; ", then no problem with number of characters in a cell
and no need for Text-To-Columns.
You will of be limited to 256 column in versions before 2007.

NickHK

"Adrian T" wrote in message
...
Hello,

I have data in a text file (semicolon delimited) like this

0;Name1;0.001;0.002;0.003;;;;;and a lot lot more (70k

characters/digits)
1;Name2;0.005;0.006;0.007;;;;;and a lot lot more
2;Name3;0.005;0.006;0.007;;;;;and a lot lot more
and a lot lot more lines

What I used to do was that I initially imported the data into a cell

wtih
the querytable function (one line per one cell). Then, I used the split
function to store the data into an array (one cell per one array) and

the
program started from there. This worked perfectly fine when each line

had
less than 30k characters. Now, I have more than 70k characters per one

line
and therefore I can't physically import them into one cell. Excel limits

the
number of characters in one cell to about 32k.

Is there a way that I can directly import the data and store it into an
array (one line per one array) without having to physically write the

data
into a cell first? This way (if possible) I can bypass the limitation

that
a
cell can hold.


Please help and thanks in advance,
Adrian T





 
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
can i import barcode data directly to excel colt Excel Programming 3 May 19th 06 03:33 AM
How to import Yahoo historical data directly into spreadsheet? [email protected] Excel Discussion (Misc queries) 0 March 24th 06 08:05 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM
import array text to row data in excel nduy Excel Programming 2 January 3rd 04 09:34 AM


All times are GMT +1. The time now is 08:35 AM.

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"