+ Reply to Thread
Results 1 to 9 of 9

Automatically move rows from one worksheet to another when condition is met - Please help

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    5

    Automatically move rows from one worksheet to another when condition is met - Please help

    Hi, I need help. I am doing a Sales Forecast worksheet. Honestly, I am not good in programming and really need your help guys.

    What I need to do is to move the entire row from Sales Opportunities worksheet to Sales Forecast when the Probability is 75% up.

    I hope you guys can help me out. Thank you.
    Attached Files Attached Files

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

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    Hi dxbFoss and welcome to the forum,

    Here is the code that should do what you ask: It is also included in the attached workbook.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by MarvinP; 02-15-2015 at 03:09 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-15-2015
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    5

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    Hi, thank you. but how those moved rows will copied right after the table headers?

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

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    Hi,

    The problem is that you have your Sales Forcast sheet as a TABLE. Select anywhere in the table and click on the Data Tab and then the Filter Icon. This will them let my macro work correctly. See the attached that uses the same code. You simply need to remove the table status of the Sales Forcast sheet.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-15-2015
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    5

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    Thanks Marvin. You're so helpful. Another question. should we always click run for the macro to work?

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

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    You could create a button that would click and run the macro, but for now I'd click on the developer tab and Run the Macro. What do you want to do?

  7. #7
    Registered User
    Join Date
    02-15-2015
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    5

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    Hi Marvin,

    You are so helpful. How I can make a macro button?

  8. #8
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    here is an another alternative.
    Instead of looping through, I have used inbuild Advanced Filter Method of Range Object.

    You can also change your criteria in the ColH.

    Read more about advanced filter here. As they can provide plenty of conclusions at blink of an eye.
    http://www.tushar-mehta.com/publish_...lysis/06.shtml

    I have removed the table status from both the sheets for favoring my method.
    Here is the code:-
    Please Login or Register  to view this content.
    Check the attached file:-
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  9. #9
    Registered User
    Join Date
    02-15-2015
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    5

    Re: Automatically move rows from one worksheet to another when condition is met - Please h

    Hi MarvinP,

    Your program works so well. Thank you so much. Is automatic delete possible for rows that has been moved that are 75% up?

+ 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] How to move entire rows if a condition is met
    By mcculltc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2013, 03:46 PM
  2. Replies: 2
    Last Post: 08-27-2013, 05:01 PM
  3. Automatically move rows to another worksheet based on cell value
    By Jon Edwards in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-11-2013, 12:51 PM
  4. Move a row from one worksheet to another if a condition is met
    By whitneyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 06:11 AM
  5. Move entire row automatically to another worksheet if condition is met
    By starr5128 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2011, 06:38 PM

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