Export text files to excel

Rattlesnake

Registered User.
Local time
Today, 08:01
Joined
Sep 19, 2002
Messages
31
hi,
We have an application that produces tab seperated text files.It creates like 10 -15 files at one time. I want to create an application that will export SELECTED FIELDS from each text file (for. e.g. the 1st,5th,10th,20th values) to one excel sheet.(all 15 text files to one excel sheet)

The values should be APPENDED to the Excel sheet.
Basically it should be that the user selects the folder that contains the text files , and then all the files inside it are expoted to excel.

Any tips on how to go about this????
Thanks a lot.
 
Easiest way (I think) would be to import the text files to tables within Access, create a union query to amalgamate the results then export this result to the excel format.

Th only question is in this statement,
SELECTED FIELDS from each text file (for. e.g. the 1st,5th,10th,20th values

Do you mean fields or records as that will dictate how you extract the data. The former is easy, the latter not so.
 
I mean FIELDS. One text file is one RECORD. There many fields in it. So i just want to import the fields I want.

Thanks
 
Well....

Since excel can open up text files and delimit tabs. Why couldnt you write a macro that opens the file and pulls data from the desired columns and apply the data where needed?
 

Users who are viewing this thread

Back
Top Bottom