Hi,
I've recently been trying to retrieve data from a a folder of excel files, the data that i need is selected from within the folder and is not a set position within the file. I'm fairly new to writing vb code and have generally stuck to borrowing various sections of code of forums to achieve what i want but this is causing me a bit of a headache.
The process i thought that might work best (please correct me if you have a better suggestion) would be to list the file name in consecutive cells down a column and have a piece of code that worked its way down the cells opening each file finding the information needed and inserting it into the worksheet. Beside the inserted data i also need to attach a date which will be the same for all rows taken from each file and would be the file name in reverse. The file names currently run YYMMDD relating to the day they are taken from
I have attached the some example files to show the format of the files the data is being retrieved from. I am only interested in retrieving the rows starting three down from the, 'Glasgow climbing academy' heading, which normally start with 1MON and always finish in a row TOTAL.
I have also attached a file 'eg combined' which is an example of what I am aiming to achieve.
Any help with this would be greatly appreciated as copy and pasting a few years worth of these will be fairly tiresome.
Cheers Thom
I've recently been trying to retrieve data from a a folder of excel files, the data that i need is selected from within the folder and is not a set position within the file. I'm fairly new to writing vb code and have generally stuck to borrowing various sections of code of forums to achieve what i want but this is causing me a bit of a headache.
The process i thought that might work best (please correct me if you have a better suggestion) would be to list the file name in consecutive cells down a column and have a piece of code that worked its way down the cells opening each file finding the information needed and inserting it into the worksheet. Beside the inserted data i also need to attach a date which will be the same for all rows taken from each file and would be the file name in reverse. The file names currently run YYMMDD relating to the day they are taken from
I have attached the some example files to show the format of the files the data is being retrieved from. I am only interested in retrieving the rows starting three down from the, 'Glasgow climbing academy' heading, which normally start with 1MON and always finish in a row TOTAL.
I have also attached a file 'eg combined' which is an example of what I am aiming to achieve.
Any help with this would be greatly appreciated as copy and pasting a few years worth of these will be fairly tiresome.
Cheers Thom