LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 186
Default Opening and Testing Large Text File

I have a large (150,000 record) text file that I want to open, test for a
certain condition, and save selected records into Excel. The records have
fixed width fields.
What is the necessary code to:

1. Open the text file.
2. Dimension the fields.
3. Loop through the records and test whether filed #1 = "6403".
4. Save the records found in step three to Excel.

In the old days I could do it with BASIC, but can't get the VBA coding for a
macro.

TIA.
--
Ken Hudson
 
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
Large text file toby131 Excel Discussion (Misc queries) 4 September 28th 09 10:53 PM
Opening large text files freekrill Excel Discussion (Misc queries) 6 September 7th 05 04:44 AM
opening an excel file that is too large Joe E via OfficeKB.com Excel Programming 1 February 16th 05 03:27 PM
opening a large text or csv file Srikanth Ganesan[_2_] Excel Programming 2 November 4th 04 08:48 PM
VBA Excel: Opening Very Large Text Files [email protected] Excel Programming 6 September 21st 03 07:30 PM


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