+ Reply to Thread
Results 1 to 4 of 4

Extracting data from multiple workbook in folder into main workbook

  1. #1
    Forum Contributor
    Join Date
    01-18-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    127

    Extracting data from multiple workbook in folder into main workbook

    Hi there,

    Can anyone help, i need to do the following:

    1. Have VBA code that gets Excel to check in a particular folder that is full of forms in .xls format (say about 70 forms)
    2. Extract data from each form in the folder (can this be done without opening the form entirely?). Transfer values by row into the already open destination workbook.

    The transfer of data from each form is not so much a problem for me code wise. What I really need help with is getting Excel to search in the folder of forms, creating a cycle to go through them one by one. Can a reference to each file in the folder be done by a numeric index i.e. 1, 2, 3 etc?

    Help gratefully received.

    Am using Excel 2007

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: Extracting data from multiple workbook in folder into main workbook

    See this thread for starters.
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

  3. #3
    Forum Contributor
    Join Date
    01-18-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Extracting data from multiple workbook in folder into main workbook

    That'll surely help me. Cheers

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Extracting data from multiple workbook in folder into main workbook

    The base code from that thread comes from here:
    The macro may be pretty close to "ready to use" for collecting data from all files in a specific folder.
    The parts of the code that need to be edited are colored to draw your attention.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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