Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have been exporting model trees as text files from our modeling program
(running on Unix), and then FTP'ing them to my Windows workstation. Because of the way the program outputs the files, I use a question mark ("?") as a delimiter. Many times, commas, dashes, spaces, and slashes are used in the data's columns, so the common delimiters are out. Sometimes the files contain over 100,000 lines, so I tried using the code Microsoft suggests to import the lines to multiple sheets. However, I think the code read the entire file as one line, for it tried to place the entire file into "A1." Sure enough, when I opened the text file with Notepad, it's all one line. But, if I open the file with Wordpad, the lines are correctly displayed. If I save the file and reopen with Notepad, the lines are correctly displayed. How do I workaround this? (By the way, I did go in and verify that there were "Chr(10)'s" where Notepad displayed boxes.) Also, most of the lines in the text file are blank or contain a handful of spaces and then a question mark. Is there a way that I can force the code to only import lines that contain actual data? How fast is this compared to opening the whole file (assuming it will fit) and running a for loop to delete the blank lines? Thanks for your help, Pflugs |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Importing text-files | Excel Discussion (Misc queries) | |||
Importing txt csv files into Excel greater than 65k lines | Excel Discussion (Misc queries) | |||
Importing data from a Text File, Not enough lines? | Excel Programming | |||
Importing Multiple lines of text in a single Excel Cel | Excel Programming | |||
importing text files | Excel Programming |