+ Reply to Thread
Results 1 to 3 of 3

extract data from multiple worksheets and save to the respecting workbook

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Excel 2007
    Posts
    4

    extract data from multiple worksheets and save to the respecting workbook

    Hey you all,

    I am completely lost here and I couldn't find anywhere how could I fix my problem. I hope someone out there can help me.

    I have a workbook containing original information for all countries involved. Each months data is saved in a separate worksheet. I want to create new reports for certain countries, and include all the info for the year into another workbooks single sheet.

    What I want to do is: 1.create a new workbook for every country 2. transfer all the data where shipment end location is this particular country into the worksheet (7th column)

    I've already created a range to loop throught this list and create a new workbook for each. My problem is how to loop throught the worksheets, and coppy over the data I need.


    My code works perfectly if I enter the code in a worksheet, but unfortunately the data set is too large to be saved into single sheet.

    I've uploaded a sample workbook, with the code written so far. If you have any other questions, please let me know.

    I'd be very gratefull for any help! Thanks a lot in advance!

    Regards,
    Anitra
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: extract data from multiple worksheets and save to the respecting workbook

    My code works perfectly if I enter the code in a worksheet, but unfortunately the data set is too large to be saved into single sheet.
    Why do you want to save the data in a single worksheet? You will need to put the code into an independent module.

    Another question - Will the same entries present in column G in sheet "Jan" be present in "Feb" as well? Can i use the info given in column A in the Info sheet to identify the locations?

    I will work on the code for you.
    Last edited by arlu1201; 09-13-2013 at 09:49 AM.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: extract data from multiple worksheets and save to the respecting workbook

    To first question - no, I don't want to save it in one worksheet
    Second question - yes, the same order will appear throughout these worksheets. Unfortunately, the info in column A won't help to identify the locations, so that why I wanted to use column G for identification.

    Thank you very much for your help!

    p.s. sorry for the late reply, was away for some time
    Last edited by anitra; 09-29-2013 at 05:10 AM.

+ 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. Extract Data from multiple worksheets within a workbook
    By gymnst920 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2013, 09:37 AM
  2. Extract from multiple worksheets based on one condition and output to new workbook
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 01-23-2012, 05:05 PM
  3. Replies: 3
    Last Post: 11-03-2011, 02:30 PM
  4. save multiple worksheets and name workbook
    By Christy416 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2008, 03:48 PM
  5. [SOLVED] merge/extract data from identical worksheets in a workbook
    By Michelle K in forum Excel General
    Replies: 5
    Last Post: 06-21-2005, 01:05 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