+ Reply to Thread
Results 1 to 9 of 9

Copy all data into one sheet

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Copy all data into one sheet

    I have excel worksheet with lots of sheet with data in Column A and Column B
    I need a macro to copy all column A and Column B data from all sheets in let's say sheet called "Consolidate".

    Please help me achieve this...

    Let me know if you have questions..

    Thank You...

    Riz Momin
    Last edited by rizmomin; 08-06-2009 at 09:06 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Copy all data into one sheet

    Hi Riz,

    Are you saying that you have one workbook that has many sheets, and those sheets all have data in columns A and B?

    And you want to copy those columns from each sheet into one main sheet called "Consolidate" and have all that data in columns A and B as they were on the original sheets?

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy all data into one sheet

    yes, exactly right....

    Thnx

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Copy all data into one sheet

    Ok then try this macro:
    Please Login or Register  to view this content.
    To add this macro to your workbook:
    Press ALT+F11 to open the VB Editor
    Click Insert -> Module
    Copy and paste the code shown above into the empty code window
    Close the VB Editor and save your workbook
    To run the macro, press ALT+F8, select Consolidate and click Run.

    Hope that helps!

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy all data into one sheet

    This works great,,

    Thank u so much for your professional help.


    Riz Momin

  6. #6
    Registered User
    Join Date
    08-28-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy all data into one sheet

    hello,
    can you please tell me if i need to collect data from many workbooks and put them in one sheet in new workbook

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Copy all data into one sheet

    Hi Beckham3mr:

    For above macro to work, you need one excel workbook with many sheets and all sheets have data in Column A and Column B.
    The above macro will copy data from Column A and B from all sheets and put in "Consolidate" sheet.

    Riz Momin

  8. #8
    Registered User
    Join Date
    08-28-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy all data into one sheet

    Hello rizmomin ,

    yes, i try it and it is working but this is not what i need .because i need to collect the data from many excel workbook and put in one workbook .
    thanks for you support

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

    Re: Copy all data into one sheet

    beckham,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    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]

+ 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