Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Trying to NOT import some records in a large text file

Success, Thanks Dave.




Dave Peterson wrote:
Do Until EOF(FNum)
''''''''''''''''''''''''''''''''''''''''''''''
' Get the next line of data from the file
''''''''''''''''''''''''''''''''''''''''''''''
Line Input #FNum, InputLine

If UCase(Left(InputLine, 3)) = "AAJ" Then
'do nothing
Else
''''''''''''''''''''''''''''''''''''''''''
' Increment counters.
''''''''''''''''''''''''''''''''''''''''''
InputCounter = InputCounter + 1
RowsThisSheet = RowsThisSheet + 1
'more code that does the real work
End If
loop


I would just use the else branch:

[quoted text clipped - 41 lines]
--
Message posted via http://www.officekb.com



--
Message posted via http://www.officekb.com

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
Text Import Wizard (use for large files) Traci Excel Discussion (Misc queries) 2 November 14th 06 03:12 AM
very large text and CONTINUE records [email protected] Excel Programming 0 April 19th 06 04:34 PM
Import Text file into Excel and match up records Spanarkle Excel Discussion (Misc queries) 2 April 6th 06 07:34 PM
how do I import a large amount of text into one cell? Avid Marine Excel Discussion (Misc queries) 0 January 2nd 06 07:50 AM
Error in large file import macro Scott Calkins via OfficeKB.com Excel Programming 8 September 30th 05 12:39 PM


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