Hi Guys,
This is my first post and was wondering if you could help me out with this massive challenge?
I have to consolidate up to 10 spreadsheets into one spreadsheet every month. All I want to do is create a macro to copy each childs spreadsheet data and paste under each other in the parent sheet but with a few small complications.....
Firstly each child is password protected but they are all the same ("abc") but I don’t want to enter the passwords 10 times to extract the data from each.
I have to do this process for another 8 parent accounts so I was hoping it was possible to create a standard parent workbook that it would have on one tab a list of locations of the spreadsheets with the name of the spreadsheet so i could change them if a new file was created;
Name Location File name
ABC1 C:\Documents and Settings\Files\ ABC1Feb
AFC2 C:\Documents and Settings\Files\ AFC2Feb
ABE4 C:\Documents and Settings\Files\ ABE4Feb
(I don’t know if that was possible so I will accept any other ideas!)
All child accounts are set out exactly the same however some childs may have new codes added each month so it may vary in rows going down in the page but the column titles will always stay the same. I would only want to copy the data from A to U in my examples.
The next challenge is when the data is taken from each spreadsheet and pasted in the master spreadsheet would be to have a new column created in column A to state the name of the file it was taken from (eg "ABC1").
If this is possible then please can someone help me out? Or give any other suggestions?
I have attached my example files.
Many thanks.
Phil
Consolidation file.xlsAFC2Feb12.xlsABC1Feb12.xls
Bookmarks