+ Reply to Thread
Results 1 to 2 of 2

open files in folder and copy sheets to new workbook

  1. #1
    Registered User
    Join Date
    03-18-2012
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    42

    open files in folder and copy sheets to new workbook

    Hi,

    I'm trying to create a macro that will open excel files in a specified folder and then Copy a sheet named Summary to a consolidated workbook.
    all of the excel files in the folder will have a sheet named "summary".

    also, when it copies the sheet "Summary" it can rename the sheet tab in the consolidated book to the name located in cell A1 of the summary sheet.

    example:

    folder path: C:\my documents\
    file 1: testfile1.xls
    file 2: testfile2.xls
    .
    .
    .
    testfile1.xls contains a sheet called summary and in cell a1 display "testfile1"

    copy sheet "summary" to consolidated workbook

    Consolidated workbook will contain two sheets. 1 from testfile1 and the other from testfile2.

    i hope this make sense.

    i tried searching for other codes but could not come up with anything similar

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: open files in folder and copy sheets to new workbook

    http://www.rondebruin.nl/copy3.htm
    If solved remember to mark Thread as solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1