+ Reply to Thread
Results 1 to 4 of 4

Copy rows from several sheets and compile into list on another sheet

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Copy rows from several sheets and compile into list on another sheet

    I am not good enough to do this on my own and you folks have always helped me out in the past.

    I attach a demo workbook to try and show my problem.
    I have a workbook with 9 sheets of data on them with a final 10th sheet where I wish to combine all this lovely info.

    The data on each separate sheet is for different suppliers and is likely to grow so I cant just copy and paste the info across.

    Is there a way for Excel to automatically on opening/closing (pref closing as that will be when I have amended the data) to search for rows where there are entries and then copy those rows only onto the 'Overview' sheet. I would prefer the data to have no blank rows and to have the first sheets data at the top of the list on so on down.

    Can it be done?

    I would also appreciate, if it can be done, if you would explain your solution so I might learn how you did it.

    Many thanks,

    Andrew
    Attached Files Attached Files

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

    Re: Copy rows from several sheets and compile into list on another sheet

    1) Right-click on the OVERVIEW sheet and select VIEW CODE
    2) Paste in this sheet event macro:
    Please Login or Register  to view this content.
    3) In VBAProject window on the left in the VB Editor, doubleclick on the ThisWorkbook module to open it.
    4) Paste in this workbook event macro:
    Please Login or Register  to view this content.
    5) Close the editor and save your sheet as macro-enabled workbook. (*.xlsm)

    =========
    Now, every time you VIEW the OVERVIEW sheet it will update to the most current values from all the other sheets.

    Anytime you try to save the workbook, it will activate the OVERVIEW sheet first to force it's bultin macro to run first.
    _________________
    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!)

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Copy rows from several sheets and compile into list on another sheet

    Thank-you very much that is doing exactly what it said it would.

    Trouble is, and I know I never said, I have cells that have values derived from other info on the original sheets. How do I get it to copy values only?

  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: Copy rows from several sheets and compile into list on another sheet

    Change the Sheet macro to:
    Please Login or Register  to view this content.

    =========
    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)

+ 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