+ Reply to Thread
Results 1 to 8 of 8

Automatically copy rows from three sheets to a final sheet, autosorting by date

  1. #1
    Registered User
    Join Date
    04-06-2018
    Location
    Brisbane
    MS-Off Ver
    MS Office 365
    Posts
    4

    Question Automatically copy rows from three sheets to a final sheet, autosorting by date

    I'm not a newbie to excel, but don't have any experience with programming or macros. I have three spreadsheets for different areas (all in one file) that I would like to have auto-populate a fourth spreadsheet without me having to copy and paste manually. I have tried a [=Sheet1!A6] type formula, but the items listed in each of the first three spreadsheets are listed by date and as these dates pass, I delete the whole row. This results in errors on the final spreadsheet.

    To complicate matters, as each row starts with a date, I would like all the items to populate the fourth spreadsheet in date-order. If this is not possible, I will settle for my first need and simply sort the final page.

    Can anyone help please?

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    Please attach a short Excel sample with dummy data to prepare macro: it will help a lot
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    04-06-2018
    Location
    Brisbane
    MS-Off Ver
    MS Office 365
    Posts
    4

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    Attached is an example... it has the first three sheets with datasets that will feed into sheet four. In this instance, I have copied and pasted the data from the first three sheets, but I want this to be automated.
    Attached Files Attached Files

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    Let's try this for starters.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    04-06-2018
    Location
    Brisbane
    MS-Off Ver
    MS Office 365
    Posts
    4

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    Thanks bakerman2.... Do I copy all that text into a cell? Do I need to put it in multiple cells?

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    You have to copy all that text into a standard module. To do so press ALT-F11, ALT-N, M and paste text in right window.

    To start code in worksheet press ALT-F8 which opens a box with all available code, select tst and click Run.

    Added example file for your convenience.
    Attached Files Attached Files
    Last edited by bakerman2; 04-09-2018 at 01:41 AM.

  7. #7
    Registered User
    Join Date
    04-06-2018
    Location
    Brisbane
    MS-Off Ver
    MS Office 365
    Posts
    4

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    Thank you so much bakerman2! This has fixed my problem So happy now

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Automatically copy rows from three sheets to a final sheet, autosorting by date

    Done my good deed for today.

    Happy to help and thanks for rep+.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] automatically copy data from different sheets and sequentially copy to another sheet
    By darbar76528 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-13-2017, 02:12 PM
  2. [SOLVED] Need help- macro to scan all sheets for cells in date range, then copy rows to new sheet
    By BrenFred in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2016, 10:38 AM
  3. [SOLVED] Transfer data in two sheets to final sheet
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2015, 11:15 AM
  4. [SOLVED] automatically coping entire rows to new sheets when date is entered
    By Cisquester in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 10-26-2014, 03:51 PM
  5. Copy the pictures of charts from different sheets into a new final sheet
    By Lollek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2013, 12:46 PM
  6. Code to copy data from multiple sheets into one final output sheet.
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-03-2012, 08:51 AM
  7. Copy data from 1 sheet to other sheets automatically
    By mattyb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2008, 03:43 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