I have been trying to import specific data from multiple text files in a directory that updates daily. I just need a code that can go through and import the data for the last 1000 text files. I have no prior vba excel programming experience. I have been trying to find codes to manipulate for what I need but i can't get it to work. Below is a template of what the text file looks like. The important data is within the first 11 lines. I only need the number after "Pump ID:" such as "563584", the Date, the number after the "Backlash Value:" such as "786," and the "Read Back Test" result. The way I need is organized is below in the screen shot. Any help will be appreciated. I am using excel 2010.
XXXXXXX Pump Backlash Log
Pump ID: 563584 -- 2013_06_21--08-18-01
Date: Fri, Jun 21, 2013
Time: 8:20:00 AM
SW P/N = 004024
SW Rev = F
Backlash Loc: 17351
Backlash Value: 786 HEX Value = 0x028A
Backlash High Limit: 1425
Backlash Low Limit: 187
Read Back Test: PASSED
---------------------------LOG DATA----------------------------
08:18:11.938 <echo1>
08:18:12.939 [echo1] Ok.
08:18:12.940 <Version>
08:18:17.940 <Version>[Version] 35852, 35798, 35809
08:18:17.940 [MspVersion] 35852, 35798, 35809, 0, 0
08:18:17.940 <ReadpcbaID>
08:18:19.940 <ReadpcbaID>[ReadpcbaID] 87810136, 4664, A
08:18:19.940 <ReadpumpID>
08:18:21.940 <ReadpumpID>[ReadpumpID] 0, 0,
I would like it organized into excel like the screen shot below.
excel screen shot.PNG
Bookmarks