+ Reply to Thread
Results 1 to 5 of 5

MOVE all values in a row to next sheet when date is entered in column

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    31

    MOVE all values in a row to next sheet when date is entered in column

    Hi Everyone

    I know it can be done but I don't know how to write the macro.

    In the attached file, first tab - Current Hotel Info - I would like to move an entire line if a date is entered into column O

    I would like the row to move to the next sheet, titled Shipped Hotel Info and not remain on the first tab.

    Thank you for your help!

    Irene

    Hotel Info Tracking sample.xlsx

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: MOVE all values in a row to next sheet when date is entered in column

    You may try this code.
    Please Login or Register  to view this content.
    To implement this code, right click on Sheet CURRENT HOTEL INFO Tab --> View Code --> Paste the code given above in the opened code window --> Close the VBA Editor --> Save your workbook as Excel Macro-Enabled Workbook --> Done.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: MOVE all values in a row to next sheet when date is entered in column

    Ok

    This might be slightly better that sktneer's code, in your environment.

    Firstly no messagebox to slow you down
    Secondly you don't need to entire a date into a cell to trigger the event.

    Simply type ed for enter date.

    This will enter the date and then move the row.


    Please Login or Register  to view this content.
    Right Click on the sheet name at the bottom of excel and select view code

    Paste the code above there

    Close the macro window

    Save you file

    Type ed in column O.















    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-02-2014
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: MOVE all values in a row to next sheet when date is entered in column

    It worked, and then it stopped! I am attaching the whole document (with identifying info removed) to see if maybe the conditional formatting I added after may have changed something?

    Hotel Info Tracking sample.xlsx.xlsm

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: MOVE all values in a row to next sheet when date is entered in column

    In the third line

    You changed false to true.

+ 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. Replies: 7
    Last Post: 07-01-2014, 01:09 PM
  2. Replies: 1
    Last Post: 08-07-2013, 11:09 PM
  3. Split Data Unique Value From 2 Sheet of A column and Move to 2 Sheet with Splited Values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2013, 04:21 AM
  4. Move entire row of data from Sheet 1 to sheet 2 when completed date is entered.
    By jt7721 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:50 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

Tags for this Thread

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