Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: multiple workbooks

  1. #1
    Board Regular
    Join Date
    May 2002
    Location
    Canada
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Brampton
    Posts
    328
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •