I apologize for the lengthy task, but I have run into a tight spot and my boss is on my butt to do this, quite frankly i've never used visual basic before. I understand your time is valuable so even hints or parts of the code would be appreciated, but if you can do the whole thing i'd love you forever.
Title
Labels
Averages
Measured
AA 1 25.0
8 4 6 3 2 4 5 7 3 2
AB 1 50.0
7 1 2 5 4 6 3 9 8 7
AC 1 75.0
7 8 6 5 4 2 1 3 8 7
BA 1 100.0
1 2 3 4 5 6 7 8 9 1
BB 1 125.0
9 6 6 4 1 5 2 3 4 3
BC 1 150.0
3 2 1 6 5 4 9 8 7 6
CA 1 175.0
3 6 9 8 5 2 1 4 7 8
CB 1 200.0
2 5 8 7 4 1 3 6 9 8
CC 1 225.0
6 5 4 1 2 3 9 8 7 6
DA 1 230.0
1 9 3 7 8 2 6 4 5 5
DB 2 25.0
1 5 9 6 2 3 4 8 7 8
DC 2 50.0
9 8 5 6 3 2 1 4 7 8
The first sheet in excel will have the user enter a directory name and which groups to analyze(the groups will be defined by the two letters and the number at the right of that line such as CB 200.0 or BA 100.0). Each directory will have approximately 25 text files. I need a Visual Basic code to open the directory defined by user, then open each text file within the directory, and put whatever groups were selected(same groups for each file within the directory) into a worksheet. The only values I want put into the worksheet are the first and second values in the line below the group. So for CC 225.0 I want 6 and 5 put into excel.
Thank you all so much in advance for taking the time to look at this. Hopefully we can figure this bad boy out.
Title
Labels
Averages
Measured
AA 1 25.0
8 4 6 3 2 4 5 7 3 2
AB 1 50.0
7 1 2 5 4 6 3 9 8 7
AC 1 75.0
7 8 6 5 4 2 1 3 8 7
BA 1 100.0
1 2 3 4 5 6 7 8 9 1
BB 1 125.0
9 6 6 4 1 5 2 3 4 3
BC 1 150.0
3 2 1 6 5 4 9 8 7 6
CA 1 175.0
3 6 9 8 5 2 1 4 7 8
CB 1 200.0
2 5 8 7 4 1 3 6 9 8
CC 1 225.0
6 5 4 1 2 3 9 8 7 6
DA 1 230.0
1 9 3 7 8 2 6 4 5 5
DB 2 25.0
1 5 9 6 2 3 4 8 7 8
DC 2 50.0
9 8 5 6 3 2 1 4 7 8
The first sheet in excel will have the user enter a directory name and which groups to analyze(the groups will be defined by the two letters and the number at the right of that line such as CB 200.0 or BA 100.0). Each directory will have approximately 25 text files. I need a Visual Basic code to open the directory defined by user, then open each text file within the directory, and put whatever groups were selected(same groups for each file within the directory) into a worksheet. The only values I want put into the worksheet are the first and second values in the line below the group. So for CC 225.0 I want 6 and 5 put into excel.
Thank you all so much in advance for taking the time to look at this. Hopefully we can figure this bad boy out.