+ Reply to Thread
Results 1 to 3 of 3

Looking To Sort Data To Separate Worksheets Based On Date

  1. #1
    Registered User
    Join Date
    01-04-2018
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    1

    Looking To Sort Data To Separate Worksheets Based On Date

    Hello,

    I am looking to create a macro that selects records based on their date field (this data is stored in a worksheet called "AllData") and copy and pastes these records into the correct month's worksheet in the same Excel file (i.e. "January 2018", "February 2018", etc).

    I've created a mock Excel file and attached a screenshot to better explain what I am trying to accomplish. The macro would loop through the data in the "AllData" worksheet, select all records that were taken in January, paste these records into the "January 2018" worksheet, then repeat the process for February, March, etc.

    Any help is greatly appreciated. Thank you for your time.

    180104_EFQ.jpg
    Last edited by jsmith2018; 01-04-2018 at 04:02 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,937

    Re: Macro: Loop Through Date Field, Copy And Paste Records Into Relevant Worksheet

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    If you want someone to complete a macro project from scratch for you, please see our commercial services sub forum:
    Go to the Commercial Services section of this site http://www.excelforum.com/commercial-services/
    And read the FAQ on how to solicit paid help.

    If you are writing it yourself, please post the code and indicate where you are having trouble.
    Ben Van Johnson

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,755

    Re: Macro: Loop Through Date Field, Copy And Paste Records Into Relevant Worksheet

    X post
    https://www.mrexcel.com/forum/excel-...worksheet.html

+ 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] Loop worksheets Copy range and Paste in LastUsedCell in first worksheet, delete Worksheet
    By Simone Fick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2017, 10:01 AM
  2. Copy & Paste to worksheet if cell is not blank - loop
    By taxchick1969 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-17-2017, 12:24 PM
  3. Copy and Paste from Workbooks to Worksheet Loop
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2015, 04:38 AM
  4. [SOLVED] VBA Loop through each worksheet except two and then copy paste
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2014, 06:45 AM
  5. Replies: 61
    Last Post: 04-02-2014, 09:02 AM
  6. Copy Data from form field and paste into worksheet cell
    By azhark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 04:47 PM
  7. Loop to copy rows and paste into worksheet
    By damien_carr1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2009, 06:10 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