+ Reply to Thread
Results 1 to 8 of 8

Cut & paste row automatically from 1 sheet to another based on formulated cell value

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Cut & paste row automatically from 1 sheet to another based on formulated cell value

    Dear Experts,

    I have a workbook with two worksheets in it and what I would like to do is automatically cut and paste rows from one sheet to another based on cell criteria. I have used some vba coding that I have found but it will not work as the cell/column I base the information on has a formula built in to it and it seems to stop the vba code from working. Can someone please advise what I am doing wrong and show me how to correct it. I have attached a sample workbook for you.

    Many thanks in advance for any help received.

    Kaz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    I have tested it and it works.
    You need to check if your enabled events have been turned-off

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    Hi AB33,

    Sorry, how do I enable events or check to see if they are turned on.

    Thanks,
    Kaz

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    While at VBA project window, choose View-Immediate window. or CRLT+G while your cursor is on VBA project. You will get a window. Type

    Application.EnableEvents = True
    and hit the enter button. Go back to excel and try it and should work.

  5. #5
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    Thank you for that but I still can not get the code to work. What else could I be doing wrong as the rows with 'No' against them are not moving over to 'Sheet1' as per the VBA code.

    Thanks,
    Kaz

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    If you do it correctly, you need to enter No in column E (Any row), or drag the formula which gives you E value.

  7. #7
    Registered User
    Join Date
    10-25-2012
    Location
    Northamptonshire
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    Hi AB33

    I am very sorry but no matter what I try I can not get the rows with 'No' against them in column E to automatically transfer to sheet 1. I have done everything you said, even entered 'No' manually in column E just in case the formula to determine 'No' was incorrect but nothing I try works. Is there anything else you or someone else can suggest, even if it means using different VBA coding as the combination of VBA coding and formulas I am using in column E is clearly not working for me. I am using excel 2013 is this is making a difference.

    Thanks,
    Kaz

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Cut & paste row automatically from 1 sheet to another based on formulated cell value

    The code works for me. As soon as I changed column E in No, that row has moved to sheet1.
    If the code does not work, remove it and use a filter code instead, but this code is no auto fired, you need to run it.
    Attached Files Attached Files

+ 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. How To Automatically Add Formulated Rows Without Macro?
    By pbnc-inu in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-17-2021, 06:20 AM
  2. Automatically copy and paste rows based on cell value
    By no.18shirt in forum Excel General
    Replies: 3
    Last Post: 06-15-2013, 12:14 AM
  3. write permanently to another sheet from a cell with formulated lookup value
    By ajish002 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2012, 02:27 PM
  4. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2006, 08:33 AM
  5. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 10:33 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