Fleetwood Mac Attack
New Member
- Joined
- Jul 5, 2011
- Messages
- 3
Hello and I apologize if this topic has been addressed already - I can't seem to find it anywhere.
Here's my situation: I have a bunch of output files from a traffic simulation that can all be opened in Excel as semicolon-delimited files. As each simulation runs 30 times, I have 30 different output files, titled something like "baseline_01.mes", "baseline_02.mes", and so forth.
I want to aggregate the results from each of these 30 files into one worksheet (the "summary" sheet). I aim to develop a macro that I can call from the summary sheet that opens up each of the 30 files in my output folder 1 by 1. Once each file is open, I want to call a subroutine that sorts the data within each output file before selecting some of this sorted data and pasting it into my "summary" sheet.
Essentially, if I have a folder with my 30 output files saved together, I need some code to open up each folder one at a time, perform some action on each file, and then close each file without saving. Seems easy enough, yes?
Here's my situation: I have a bunch of output files from a traffic simulation that can all be opened in Excel as semicolon-delimited files. As each simulation runs 30 times, I have 30 different output files, titled something like "baseline_01.mes", "baseline_02.mes", and so forth.
I want to aggregate the results from each of these 30 files into one worksheet (the "summary" sheet). I aim to develop a macro that I can call from the summary sheet that opens up each of the 30 files in my output folder 1 by 1. Once each file is open, I want to call a subroutine that sorts the data within each output file before selecting some of this sorted data and pasting it into my "summary" sheet.
Essentially, if I have a folder with my 30 output files saved together, I need some code to open up each folder one at a time, perform some action on each file, and then close each file without saving. Seems easy enough, yes?