+ Reply to Thread
Results 1 to 7 of 7

Excel Workbook Data Extraction

  1. #1
    Registered User
    Join Date
    08-24-2007
    MS-Off Ver
    14.0
    Posts
    69

    Excel Workbook Data Extraction

    Hello,

    I have a folder on my drive that holds excel files, some of which I would like to extract data from, using an excel workbook outside the folder.

    Can you assist me in achieiving this action? Or, direct me to literature that will have the answer?

    Thanks in advance for your responses!

    Tommy
    Last edited by VBA Noob; 10-24-2008 at 02:36 PM.

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    The following will loop through the C:\Forum\ (change it to the directory you need) and run the code you need against all workbooks within that directory.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-24-2007
    MS-Off Ver
    14.0
    Posts
    69
    Hello MDBCT,

    Thanks for your response. Unfortunately, this is sorta over my head, so would you have an example of how to insert code into Excel...to be more specific....an example of how to set up a workbook for extracting data from workbooks within another file?

    Tommy

  4. #4
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Extract files in the attached to a folder called Forum on your C:\drive. Move the one called "Move this one somewhere else.xls" to a different location such as your desktop. The macro, when run, will list the Excel files in the Forum directory as well as the contents of the A1 column of the first sheet in each workbook.
    The code - I've highlight the new info.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-24-2007
    MS-Off Ver
    14.0
    Posts
    69
    MDBCT,

    The extract operation worked fine! Thank you for your wonderful assistance!!

    Tommy

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    tommyfernandez,

    Glad to hear you found an answer please remember to mark the thread as solved next time

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Registered User
    Join Date
    08-24-2007
    MS-Off Ver
    14.0
    Posts
    69

    Re: Excel Workbook Data Extraction

    Hello.

    I'm back with a question regarding a previous question which had been solved. The previous question pertained to extracting data from excel workbooks located in a designated file; the data would extract to a workbook located in a different file.

    My next questions pertains to extracting data from excel workbooks by specific columns; that is, I want to extract data from column B only in workbooks located in a designated file. The recipient file, located elsewhere, would populate data in column B, from all workbooks, located in the designated file.

    The designated file will grow as additional workbooks will be added, and so, the recipient workbook would grow as well.

    Any help would be greatly appreciated!

    Thank you,

    Tommy

+ 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