I would like to grab data from external work books. I then want to consolidate a range in each workbook on to the original workbook. There are lots of examples of this type of code on here but I am struggling adapting it to my needs All the target workbooks are the same name. ("Spend review tracker ECC.xls") I have this in Cell C3 the file path changes though. The first part is fixed (K:\940 Spend Reviews\38 - Project Spend Review\) I have this in cell A1. The next part is variable, I have this listed in Cells A3:A36. There is then another bit of the file path that is fixed (\Constr\) I have this in Cell B2.
So my file path would be A1&Variable&B2&C3
I have no idea how to build that file path to use it.
Once I have the file path I want to go to the file, extract data in Sheet "Application" Range (I60:T60) without actually opening the file perferably and paste the values in to the original sheet in column D the row being the same row that the variable part of the file path is in.
Now for the more difficult part I think. Not all the paths will be valid at the time the code runs but would be at some time in the future. I believe this means I need an exit sub if the file path is not valid and move to the next file path, again no idea.
The thing is although I have begun to write my own code snippets, I struggle starting off. I generally understand what is going on once it is written.
Thanks a lot
Partjob
So my file path would be A1&Variable&B2&C3
I have no idea how to build that file path to use it.
Once I have the file path I want to go to the file, extract data in Sheet "Application" Range (I60:T60) without actually opening the file perferably and paste the values in to the original sheet in column D the row being the same row that the variable part of the file path is in.
Now for the more difficult part I think. Not all the paths will be valid at the time the code runs but would be at some time in the future. I believe this means I need an exit sub if the file path is not valid and move to the next file path, again no idea.
The thing is although I have begun to write my own code snippets, I struggle starting off. I generally understand what is going on once it is written.
Thanks a lot
Partjob