![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: May 2002
Location: Canada
Posts: 69
|
I have a project that I need help working on. I have a number of different files with a number of worksheet in each. They are all in the excat same format. I need to somehow be able to import certain info from each of these workbooks into one new sheet.
For example each workbook has a "summary" and an "other" sheet. I need to get info from every sheet that is between these two. I need to get data from rows 10 through 30 in columns 2 and 9. All this info can be put in a blank sheet but I want all of the books together on in the one sheet as well. I have no idea how to go about this but if anyone has an idea it would be greatly appreciated. Thanks. Colin |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Brampton
Posts: 324
|
If I understand well what you need, I suggest the following procedure:
- Declare an array of workbooks, including full names of the files (ex. Dim wkArray(9) As String, if you have 10 primary files to import data from) - Use a For...Next statement, in order to loop through all primary workbooks, including opening of the file, copying the required values (rows 10-30, columns 2-9) and finally closing the file |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|