+ Reply to Thread
Results 1 to 7 of 7

Automatically deleting and moving a row to new sheet depending on cell value

  1. #1
    Registered User
    Join Date
    12-06-2017
    Location
    Newcastle
    MS-Off Ver
    Excel 2013
    Posts
    10

    Automatically deleting and moving a row to new sheet depending on cell value

    Hi there!

    My first post! Seriously hoping someone can help me out here, I've got an accuracy tracker that I'd like to slicken up to help out at work.

    At the moment I have a managed to set up a table with a form to input values in relation to the client record details and type of accuracy check, but once our accuracy check has been completed, I would like to be able to collate them onto a second worksheet.

    I have a column 'L' called 'Done?' which when updated to 'Yes', I would like the sheet to automatically delete the row and copy it to the second sheet. My first sheet is called 'Outstanding Checks' and my second sheet is called 'Completed Checks'.

    I have searched HIGH AND LOW for hours on the internet for a code/formula that can help but the truth is I'm still a novice at code and when trying to alter the codes I've come across to suit my needs, nothing happens on the sheet.

    If anyone could help me out with instructions on how to set this up, I'd be grateful. Using the auto-filter is not an option as many who use the sheet have complained they don't know how to use it and would prefer to see the sheet do this automatically.

    Any advice? Thanks in advance!!

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Automatically deleting and moving a row to new sheet depending on cell value

    To install the code:
    • Right-click on the 'Outstanding Checks' sheet tab.
    • Select View Code from the pop-up context menu.
    • Paste the code from below in the worksheet's code module.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    12-06-2017
    Location
    Newcastle
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Automatically deleting and moving a row to new sheet depending on cell value

    Hey,

    Thanks so much for getting back to me so quick! I'm sorry to be so thick, there was no 'View Code' on the right click menu so I've selected 'View Code' under the developer tab, and copy and pasted the code there, but nothing happened?

    Thanks again in advance.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Automatically deleting and moving a row to new sheet depending on cell value

    Did you right-click on the sheet tab?

    Alternatively, you can use the "View Code" on the developer tab, but then you have to double-click on Sheet1(Outstanding Checks) in the VBAProject window and then paste the code there; the worksheet's code module.

    vba7.png

    Where do I paste the code
    Last edited by AlphaFrog; 12-06-2017 at 08:21 PM.

  5. #5
    Registered User
    Join Date
    12-06-2017
    Location
    Newcastle
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Automatically deleting and moving a row to new sheet depending on cell value

    Hi,

    I've managed to find the 'View Code' and copied and pasted the code you kindly sent me. I've put 'Yes' in column L but nothing happened, is there something I need to do to get run the code or should it do it automatically? I'm so sorry to be a pain!

    Thanks!

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Automatically deleting and moving a row to new sheet depending on cell value

    It should happen automatically immediately after you enter Yes in column L assuming you put the code in the correct place as described.

    Save and close your workbook. Then reopen it and enter exactly Yes in column L (no quotes, or trailing space, and capital Y)

  7. #7
    Registered User
    Join Date
    12-06-2017
    Location
    Newcastle
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Automatically deleting and moving a row to new sheet depending on cell value

    Hey, sorry it's taken me so long to get back to you, the formula works great! Thank you so much.

+ 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] deleting rows depending on values on another sheet
    By ghynes in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-07-2013, 07:16 PM
  2. [SOLVED] Moving a row to another sheet and deleting the empty row
    By Tigger118 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2013, 09:31 AM
  3. Excel 2003 Deleting a row and moving it to another sheet
    By DCarmen352 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2012, 01:32 AM
  4. Deleting and moving certain columns of cells from one sheet to another.
    By m0aje in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2012, 11:52 AM
  5. Moving row to different sheet depending on cell value from drop down list
    By antagius in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2012, 06:06 AM
  6. Moving to the next cell depending on the answer
    By up_and_under in forum Excel General
    Replies: 1
    Last Post: 07-23-2010, 10:01 AM
  7. moving to another sheet depending on word
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2009, 05:57 PM
  8. automatically moving data depending on date
    By nchok in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2006, 09:55 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