+ Reply to Thread
Results 1 to 7 of 7

Macro to Cut out a row and move to new sheet

  1. #1
    Forum Contributor
    Join Date
    04-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    101

    Macro to Cut out a row and move to new sheet

    I'm in need of a macro that will cut a row out of a worksheet based on a criteria in a specific column, and add to a new sheet ( need to keep history, but dont want it on the main report), I've attached a sample.
    THANK YOU in advance, I'm in desperate need of this and can't figure it out.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro to Cut out a row and move to new sheet

    Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your main sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet.
    Please Login or Register  to view this content.
    When you enter "NLT" in column AA, the row will be cut to the other sheet.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macro to Cut out a row and move to new sheet

    Hi Idurham,

    Here is the code to do what you want. Right click on your button and have it execute this code:
    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    04-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: Macro to Cut out a row and move to new sheet

    OH MY !! this is awesome !! THANK YOU !!!

    I also need an "on close" remove all filters..
    I'm working on that now , but can't seem to get that to work..
    Can you help?

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to Cut out a row and move to new sheet

    If you want to remove filters when changing from the activesheet then:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: Macro to Cut out a row and move to new sheet

    that is awesome and I will hang on to this for future.. but I don't really want the filters to go away, ( my bad, I wasn't clear on the request .... just reset back to "show all " when the workbook is closed.
    THANK YOU !
    Last edited by ldurham; 04-06-2016 at 11:01 AM. Reason: left something out

  7. #7
    Forum Contributor
    Join Date
    01-18-2016
    Location
    OBX NC
    MS-Off Ver
    Office 2013
    Posts
    153

    Re: Macro to Cut out a row and move to new sheet

    Hey guys i attempted to use your solution for my needs it works great to a degree. Using OP sample if I just wanted certain cells corresponding to nlt row (for ex if I wanted nlt names (sheet3 f7 and f8 - caesar and cheryl), would like a couple other cells related on same row pasted to other sheet (nlt) Bottom line I dont want entire row. Make sense?

    Thanks,
    Jack

+ 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. Macro to move data from one sheet to multiple sheet
    By sreejeshc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2015, 05:19 AM
  2. [SOLVED] Move(Cut/Paste) from one sheet to other sheet with macro
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2014, 09:13 AM
  3. Create Macro to move values from the current sheet in which the macro is activated
    By Turkish1801 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2013, 06:11 PM
  4. [SOLVED] Macros To Move Multiple Rows To Another Sheet And Macro To Move Single Rows To DAX Table
    By jcaynes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2013, 05:08 PM
  5. Replies: 2
    Last Post: 10-09-2012, 04:40 PM
  6. Macro to move rows from one sheet to another sheet based on a cell vaule
    By d55272 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-09-2012, 03:33 PM
  7. Macro - Move information from Sheet 1 to Sheet 2
    By Barbosa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2006, 04:17 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