+ Reply to Thread
Results 1 to 3 of 3

Excel VBA opening of multiple excel file

  1. #1
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Excel VBA opening of multiple excel file

    Hi,

    I have a requirements to open multiple excel file (3 different file). the contains of worksheet3 of these 3 diff files will be copied to my workingfile
    under 3 different worksheet. May i ask your assistance on how to do this in excel vba or any idea. thank you in advance.

    Sample of 3 multiple excel file that i would like to open. worksheet that i would like to copy is worksheet3
    XLSample1.xls
    XLSample2.xls
    XLSample3.xls


    My working file were to insert or copy the data that came from those 3 files. I wanted to copy the contains to sheet1 for XLSample1, sheet2 for XLSample2 and sheet3 for XLSample3.

    MyDelivery.xlsm

    Here is the sample macro code.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Excel VBA opening of multiple excel file

    Are you trying to create one worksheet that consolidates all three of the other workbooks?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Contributor
    Join Date
    07-17-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    183

    Re: Excel VBA opening of multiple excel file

    Yes MikeTron.. I hav alrady an existing worksheet which i need to consolidate the 3 workbook.
    Right now i have to create a button for every workbook to open and evaluate the content..
    I wanted to use only 1 button and consolidate all those 3 workbook.

    Sample:

    MyWorkbook--- this is my mater workbook
    MySample1 will dump into sheet2
    MySample2 will dump into sheet3
    MySample3 will dump into sheet4


    --This is the workbook the i would like to copy the contents to MyWorkBook.
    MySample1.xls---sheet2 data contents
    MySample2.xls ---sheet1 data contents
    MySample3.xls----sheet2 data contents
    Last edited by Jovillanueva; 07-16-2014 at 08:53 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 05-31-2014, 02:05 AM
  2. Replies: 3
    Last Post: 01-14-2014, 10:57 AM
  3. Excel file link on mac opening containing folder not actual excel file
    By eldesso1 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 12-05-2013, 03:13 PM
  4. Replies: 4
    Last Post: 01-24-2012, 12:52 PM
  5. Opening EXCEL with a specific file opening also
    By HitTheEXCELerator in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2011, 12:51 PM

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