+ Reply to Thread
Results 1 to 5 of 5

Consolidate some data from other excel files to a master list

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    2

    Consolidate some data from other excel files to a master list

    Hello,

    I want to create a master list to consolidate some data from other excel files automatically. I'm not sure whether I should use "Import External Data" feature, but I don't the way to function. May I have anyone's assistance? I'd like to enclose a sample file for reference.

    Thanks for your assistance in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Copy from one workbook paste to another

    Hi,
    open both workbooks
    in stock list 1 place this code in a module(alt F11, insert,Module)

    Please Login or Register  to view this content.
    run this macro when in stocklist 1

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by cyk6026
    Hello,

    I want to create a master list to consolidate some data from other excel files automatically. I'm not sure whether I should use "Import External Data" feature, but I don't the way to function. May I have anyone's assistance? I'd like to enclose a sample file for reference.

    Thanks for your assistance in advance.
    the link below may help you to figure out the solution.
    download the file from link and see it.
    remember, that file has coloured sheets which are the same as non-coloured. purpose of coloured sheets is to use 3D reference style to get the results. in non-coloured sheets SUMIF function is used.

    http://www.excelforum.com/showthread.php?t=591341

  4. #4
    Registered User
    Join Date
    03-15-2007
    Posts
    2
    Hello,

    Thanks so much for starguy's and davesexcel's response.

    After I have created the macro, I found if I play it in many times, the data will be input to the master list in many times. This means that the data will be duplicated.

    My situation is that I have many excel files, like "Stock List 1" and "Stock List 2". I want to create a master list to record the data from those stock lists periodically, and then generate a privot table for further process. Since the stock lists are maintained daily and the quantities are changed as well, so if possible, I want to update the master list to recognize the update information of all stock lists that I will not spend much time to look at a lot of stock lists to check the stock level.

    Should you have any solutions, I apprecaite if you can suggest to me.

    Thanks again.
    Attached Files Attached Files

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    You could clear the range with the macro before it copies and pastes, basically to reset the sheet

    something like
    range("A2:G400").clearcontents


    here are some places to get information on how to loop through workbooks


    here are some sites for looping through workbooks

    http://www.ozgrid.com/News/aug-2005.htm

    http://www.ozgrid.com/VBA/loop-through.htm

    http://support.microsoft.com/kb/213621

+ 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