Stu Dapples
Active Member
- Joined
- Jan 12, 2009
- Messages
- 252
I am honestly starting to think the people I work with are doing things like this to prove I can't do what they are asking! Fortunately for me, you guys have so far helped me to prove that these things are possible even for mere mortals such as myself! Anyway, enough "smoke blowing" !
I have been asked to get the data out of 2 specific columns from a data sheet which is filled in on each shift and saved. The nomenclature for saving is poor to say the least....
Basically, I have about 350 workbooks with names such as 150kg_NIGHT242, 150kg_MORNING173
where 150kg is the machine, NIGHT/ MORNING is the shift and 242 is 24th of Feb, 173 is 17th March etc.
Is it possible to write some script and point it at all files in directory, regardless of filename? Maybe some sort of wildcard? eg, if filename = 150kg* then run the script?
I toyed with the idea of a user form to get someone to select which file to run the code on, it is do-able but still going to be a long task to get all the data out of 350 plus files....
Any advice, even a direction to start going, would be very much appreciated (and prove to the proliteriate that Excel is unstaoppable!!)
Thanks in advance,
Stu
I have been asked to get the data out of 2 specific columns from a data sheet which is filled in on each shift and saved. The nomenclature for saving is poor to say the least....
Basically, I have about 350 workbooks with names such as 150kg_NIGHT242, 150kg_MORNING173
where 150kg is the machine, NIGHT/ MORNING is the shift and 242 is 24th of Feb, 173 is 17th March etc.
Is it possible to write some script and point it at all files in directory, regardless of filename? Maybe some sort of wildcard? eg, if filename = 150kg* then run the script?
I toyed with the idea of a user form to get someone to select which file to run the code on, it is do-able but still going to be a long task to get all the data out of 350 plus files....
Any advice, even a direction to start going, would be very much appreciated (and prove to the proliteriate that Excel is unstaoppable!!)
Thanks in advance,
Stu