+ Reply to Thread
Results 1 to 2 of 2

Modifying Excel VBA Code for Conditional Moving of Rows

  1. #1
    Registered User
    Join Date
    07-17-2024
    Location
    egypt
    MS-Off Ver
    2016
    Posts
    1

    Modifying Excel VBA Code for Conditional Moving of Rows

    I'm working on an Excel file and need assistance modifying a VBA code. Your expertise would be greatly appreciated in refining this functionality. Here's what I'm trying to achieve:

    When clicking "MOVE" and cell P17 contains "ATIVE":

    Move the row to the "CURRENT" sheet, appending it to the last row.


    When clicking "MOVE" and cell P17 contains "FINISHED":

    First, move the row to the "CURRENT" sheet, appending it to the last row.
    Then, search for rows in the "CURRENT" sheet that contain "FINISHED" in column U.
    Move (not copy) these "FINISHED" rows to the "FINISHED" sheet.



    I have a basic structure, but I'm struggling with implementing these conditions correctly. Any help or guidance would be immensely valuable.
    Thank you in advance for your time and expertise!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,514

    Re: Modifying Excel VBA Code for Conditional Moving of Rows

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. I shall do it for you this time: https://chandoo.org/forum/threads/mo...of-rows.57400/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 2
    Last Post: 03-26-2024, 06:10 AM
  2. Replies: 2
    Last Post: 06-12-2022, 06:53 AM
  3. VB code for Moving Rows up and down
    By AndyR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2017, 05:28 AM
  4. [SOLVED] Help with code syntax for moving rows
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-20-2016, 06:55 PM
  5. Modifying VBA code to add conditional element
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2011, 09:03 AM
  6. moving and modifying data
    By vwDavid in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-21-2011, 05:04 PM
  7. Modifying code to delete rows
    By Gus80 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2010, 12:34 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