Consulting

Results 1 to 2 of 2

Thread: Combining Sheets into one table from different excel files

  1. #1
    VBAX Newbie
    Joined
    Aug 2011
    Posts
    1
    Location

    Combining Sheets into one table from different excel files

    Hi, I have a bunch of excel files that are all structured the same. I have to compile data in one of the sheets in each file into one table. I tried a macro from called: "Combine all workbooks from one folder" from the KBdbase. I liked it because you just had to put the files in a subdirectory, it also worked but the only problem was that I could not choose which worksheets to combine, it seemed to just combine everything in each file.

    Is there a way or a macro that would allow me to just combine certain worksheets?

    Thanks in advance.

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Welcome to the forum! Sure, just put the full path and names into an array and iterate through the array. Or put them into a range and iterate the range.

Posting Permissions

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