+ Reply to Thread
Results 1 to 5 of 5

Move "Closed" Rows to Closed Tab

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Gurnee, IL
    MS-Off Ver
    MS365 (PC) Version 2310
    Posts
    51

    Move "Closed" Rows to Closed Tab

    The attached spreadsheet has 2 tabs - Open and Closed. I'm trying to write a macro that takes any row on the Open tab that has a date in the "Date Closed" column and move it to the Closed tab. As the macro is currently written, it moves any row regardless of if there is a closed date.
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Move "Closed" Rows to Closed Tab

    Hi sbrnard

    I'd probably take a different approach (AutoFilter perhaps) however, existing Code works with the indicated change...
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Move "Closed" Rows to Closed Tab

    Attach this code to your close button:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Move "Closed" Rows to Closed Tab

    Hi sbrnard

    Check that...the Code I provided will work only is the narrowest of conditions...

    You need to step backward through the cells as alansidman suggests.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Move "Closed" Rows to Closed Tab

    Hi sbrnard

    I'd still suggest Auto Filter as an approach rather than looping through the Cells. However, you're welcome. Thanks for the Rep.

+ 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. Copy Range from a closed workbook "Master list"
    By Rince91 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2016, 06:01 AM
  2. Replies: 5
    Last Post: 04-16-2015, 03:20 PM
  3. Copy Rows with "Closed" in Cell to the bottom of the existing data in Sheet5
    By Baxterma in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2014, 10:30 AM
  4. [SOLVED] Macro to delete entire roll when the cell has "CLOSED" text
    By ricdamiani in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2013, 02:02 AM
  5. can i write a function based on a "lookup" value in a closed workbook??
    By Ahkle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2013, 10:53 AM
  6. [SOLVED] conditional formula to show "open" or "closed"
    By SBS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2006, 09:50 PM
  7. Replies: 2
    Last Post: 01-12-2005, 06:06 AM

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