Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Import partial record from text file string


Thanks Tom.
As always, I appreciate your mastery.

Seems text document is wrapping lines
Notepad tells me 9500 lines
However, output to xl ends at row 5499

I guess I thought the VBA would read the blank rows
and output those as well.

Any comments

--
gos

-----------------------------------------------------------------------
goss's Profile: http://www.excelforum.com/member.php...nfo&userid=460
View this thread: http://www.excelforum.com/showthread.php?threadid=27889

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Import partial record from text file string

Excel will read blank lines in a text file. However, you may not have any.

If Notepad is wordwrapping long lines, that is only for readability
purposes. The single lines don't become two lines just because they are
displayed with word wrap. A line break is indicated by vbCRLF combination.
Line Input reads everything up to the vbCRLF combination.

from help on Line Input:
The Line Input # statement reads from a file one character at a time until
it encounters a carriage return (Chr(13)) or carriage return-linefeed
(Chr(13) + Chr(10)) sequence. Carriage return-linefeed sequences are skipped
rather than appended to the character string.


--
Regards,
Tom Ogilvy
..


"goss" wrote in message
...

Thanks Tom.
As always, I appreciate your mastery.

Seems text document is wrapping lines
Notepad tells me 9500 lines
However, output to xl ends at row 5499

I guess I thought the VBA would read the blank rows
and output those as well.

Any comments?


--
goss


------------------------------------------------------------------------
goss's Profile:

http://www.excelforum.com/member.php...fo&userid=4602
View this thread: http://www.excelforum.com/showthread...hreadid=278899



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
Count partial matched text string Chapi New Users to Excel 5 July 5th 10 06:34 AM
auto bold partial text in a string dave in Toronto Excel Discussion (Misc queries) 1 June 12th 07 01:07 PM
Import txt file with multiple rows for each record VanessaNY Excel Discussion (Misc queries) 4 September 15th 05 07:33 PM
How to import a text file to Excel treating all input content are in string. Chittu Excel Discussion (Misc queries) 1 July 22nd 05 06:37 AM
Import partial record from text file string goss[_36_] Excel Programming 1 November 16th 04 03:45 AM


All times are GMT +1. The time now is 11:44 AM.

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"