Shippwreck
Programmer
Hi,
I have 30 workbooks, all formated exactly the same and i need to take the contents of certain cells out of each of them and collate into a single workbook.
However i can't get the following piece of code to work, it keeps saying "object doesn't support this property or method"
For Each c In Workbooks(file_to_open(num) & ".xls").Worksheets("Submission").Range("B13:Q19").Cells
transfer = c.Value
Workbooks("Submission Tool.xls").Worksheets("Q19").c = transfer
Next
All 30 file names are kept in the array file_to_open and this code is surrounded in a do loop saying open and close each one with Num = Num + 1 just before the loop statement of the do.
Any ideas,
Thanks
"Google is god...of the internet" - Me
I have 30 workbooks, all formated exactly the same and i need to take the contents of certain cells out of each of them and collate into a single workbook.
However i can't get the following piece of code to work, it keeps saying "object doesn't support this property or method"
For Each c In Workbooks(file_to_open(num) & ".xls").Worksheets("Submission").Range("B13:Q19").Cells
transfer = c.Value
Workbooks("Submission Tool.xls").Worksheets("Q19").c = transfer
Next
All 30 file names are kept in the array file_to_open and this code is surrounded in a do loop saying open and close each one with Num = Num + 1 just before the loop statement of the do.
Any ideas,
Thanks
"Google is god...of the internet" - Me