- Dec 6, 2007
- 1,985
- 0
- 0
Hi - Hope this is in the right forum.
So, I have an existing macro which can open a bunch of data files in an already open folder consecutively and copy a defined number of cells over to my main sheet (the one in which the macro was built).
That works fine because I had control over the data sheets filenames and I had the macro read a filename from the main sheet and look for the same file in the folder and just made the number go up by 1 each time.
My current problem is that one of our machines outputs data but the only identifier in the filename is the date and time in the format yyyy-Month-Day_Hour_Minute_Second and it is a huge volume of individual sheets with data in csv format that needs to be delimited and then compiled in a single sheet.
Anyone know how I can write a macro that will go through the files in an individual folder by filename in order or by time modified?
I'm not really a pro at this, I just got lucky with the other one because I had a model to work off of and did a lot of googling. This time my google-fu is failing me but I'll keep trying.
TIA
So, I have an existing macro which can open a bunch of data files in an already open folder consecutively and copy a defined number of cells over to my main sheet (the one in which the macro was built).
That works fine because I had control over the data sheets filenames and I had the macro read a filename from the main sheet and look for the same file in the folder and just made the number go up by 1 each time.
My current problem is that one of our machines outputs data but the only identifier in the filename is the date and time in the format yyyy-Month-Day_Hour_Minute_Second and it is a huge volume of individual sheets with data in csv format that needs to be delimited and then compiled in a single sheet.
Anyone know how I can write a macro that will go through the files in an individual folder by filename in order or by time modified?
I'm not really a pro at this, I just got lucky with the other one because I had a model to work off of and did a lot of googling. This time my google-fu is failing me but I'll keep trying.
TIA
