+ Reply to Thread
Results 1 to 11 of 11

move row of data to new tab when specific number entered in specific column

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    move row of data to new tab when specific number entered in specific column

    Hello all. Looking for some guidance on a macro for the following:

    Two tabs. 1)faClaims2 2)faClosedClaims.

    Idea would be when number 3 is entered into column AD2 all data in row 2 would move to faClosedClaims.

    I've attached the workbook if easier.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: move row of data to new tab when specific number entered in specific column

    Some questions
    "when number 3 is entered into column AD2 all data in row 2 would move to faClosedClaims."
    column AD2 on sheet "faClaims2"
    all data in row 2 from A to AC are copied, column Reason is NOT

    is it?
    Last edited by PCI; 05-06-2015 at 01:14 PM.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: move row of data to new tab when specific number entered in specific column

    See next code
    Please Login or Register  to view this content.

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

    Re: move row of data to new tab when specific number entered in specific column

    Try this to see if it does what you want.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: move row of data to new tab when specific number entered in specific column

    Hi Mr. Davis. This is great and works as I originally requested. Now would you be able to manipulate to where the 3 could be changed to a 2 and goes back to faClaims2?

    Also, would you be willing to share your work for future projects?

    Thanks again. Truly appreciated.

  6. #6
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: move row of data to new tab when specific number entered in specific column

    PCI. Thanks for the quick reply and not to be disrespectful, but seems Mr. John Davis beat you to the punch.

    Thanks again.

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

    Re: move row of data to new tab when specific number entered in specific column

    This is the code for Sheet1

    Please Login or Register  to view this content.
    For Sheet3 reverse it

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: move row of data to new tab when specific number entered in specific column

    Awesome. It worked as expected. Promise this is the last question....

    Why when I remove the preexisting numbers in column AD, the VB no longer works? assuming it was "If Target.Cells.Count > 1 Then Exit Sub", but guess not smart enough to figure it out

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

    Re: move row of data to new tab when specific number entered in specific column

    It means if you select more than one cell at a time the code will not work.

  10. #10
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: move row of data to new tab when specific number entered in specific column

    Go figure. Your're an ace.

  11. #11
    Registered User
    Join Date
    08-27-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2013
    Posts
    17

    Re: move row of data to new tab when specific number entered in specific column

    Awesome. It worked as expected and wouldn't you know, I have one more.

    What if I wanted to add another tab (faOpenClaims) and change the number system around?

    ex.
    faClaims2. enter 1 in column AD and data transfers to faOpenClaims.
    Once complete in faOpenClaims, enter 2 in column AD and data transfers back to faClaims2.
    Once complete in faClaims2, enter 3 in column AD and data transfers to faClosedClaims.

+ 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. Move row data to a specific sheet if column contains specific word
    By Kennethc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 06:55 PM
  2. Replies: 5
    Last Post: 12-18-2013, 10:33 PM
  3. [SOLVED] Trying to move specific range to a specific sheet based on data in certain column
    By cain2011 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-01-2013, 08:09 AM
  4. [SOLVED] how to stop Command button If specific number is entered in a specific cell range
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 05:10 AM
  5. Move row of data to another sheet once a date is entered in a specific column
    By stankanie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2012, 09:21 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