+ Reply to Thread
Results 1 to 2 of 2

Moving rows of data to a new sheet based on date criteria

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    1

    Moving rows of data to a new sheet based on date criteria

    I have a worksheet which consists of records from different years. One of the columns displays the year such as "2004" etc.

    What I would like to do is move the data to individual worksheets based on year. So I would end up with all the year 2004 records on one sheet, 2005 on another, etc. Then I would like to name the sheet based on the year.

    I need to do this with a macro.

    Any help would be greatly appreciated. Thanks.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Moving rows of data to a new sheet based on date criteria

    kaufmann98,

    Welcome to the forum!
    Give the below code a try. You'll need to update the strYearCol to the appropriate column.
    Please Login or Register  to view this content.
    Last edited by tigeravatar; 06-11-2012 at 01:48 PM. Reason: Updated code to include a sort
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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