i've got a set of files in a folder for each day of the month and they're all in the format like this
THURS 1.12.05
FRI 2.12.05
SAT 3.12.05
SUN 4.12.05
MON 5.12.05
What i want to do is have some code that will look for the most recent file for a particular day and get the data from cells in a sheet eg.
'AS400 EST!BB5:BB25
So for instance when i create a new file named THURS 8.12.05 it would disregard the data from THURS 1.12.05 and input from THURS 8.12.05 instead.
I've had a look at ways to do it using a code that gets the names of all the files in the folder then i've added to it to split up this output to different columns then ranks the dates, looks up the most recent occurance of a day (eg, THURS) then sticks the bits back together and try to INDIRECT this but as you can imagine it doesn't work (cause i'm not that clever!!)
Can anyone give me ideas on where to start or another way i should be looking at to solve this
Many thanks in advance
THURS 1.12.05
FRI 2.12.05
SAT 3.12.05
SUN 4.12.05
MON 5.12.05
What i want to do is have some code that will look for the most recent file for a particular day and get the data from cells in a sheet eg.
'AS400 EST!BB5:BB25
So for instance when i create a new file named THURS 8.12.05 it would disregard the data from THURS 1.12.05 and input from THURS 8.12.05 instead.
I've had a look at ways to do it using a code that gets the names of all the files in the folder then i've added to it to split up this output to different columns then ranks the dates, looks up the most recent occurance of a day (eg, THURS) then sticks the bits back together and try to INDIRECT this but as you can imagine it doesn't work (cause i'm not that clever!!)
Can anyone give me ideas on where to start or another way i should be looking at to solve this
Many thanks in advance