Hi All,
There is a group of excel files which are automatically saved in a folder daily. I would like to be able to automatically open the documents and copy the data out of these into a central file. Normally this is straight forward, but the problem I have is that the folder changes name daily to be workday-1. Is there a way to have the macro search for the folder name = to workday-1 then open the files within it?
Details:
Folder location: "C:\Users\AM\Desktop\Rec\"
Folder name format: YYYYMMDD i.e. todays download is in a folder called 20140901, tomorrow it will be 20140902 etc etc
File name: ABC.xls
So in summary, I want a macro to open a document which has the same name every day, but the folder it is stored in changes. Any ideas if this is possible?
Thanks!
There is a group of excel files which are automatically saved in a folder daily. I would like to be able to automatically open the documents and copy the data out of these into a central file. Normally this is straight forward, but the problem I have is that the folder changes name daily to be workday-1. Is there a way to have the macro search for the folder name = to workday-1 then open the files within it?
Details:
Folder location: "C:\Users\AM\Desktop\Rec\"
Folder name format: YYYYMMDD i.e. todays download is in a folder called 20140901, tomorrow it will be 20140902 etc etc
File name: ABC.xls
So in summary, I want a macro to open a document which has the same name every day, but the folder it is stored in changes. Any ideas if this is possible?
Thanks!