G
Guest
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.
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.