+ Reply to Thread
Results 1 to 7 of 7

Move date shown in cell to new cell directly left once date has passed

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Move date shown in cell to new cell directly left once date has passed

    Hi,

    I'm trying to get a date value from a cell to move directly to the left one cell once the date has passed todays date. Is this possble?

    Many thanks in advance!

    Jamie

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move date shown in cell to new cell directly left once date has passed

    This will require VBA and maybe an event driven event upon opening the spreadsheet. Is there a specific cell where the date will be originally? Do you want it moved to the left or do you want to insert a new column to the left and have it placed there?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Move date shown in cell to new cell directly left once date has passed

    Ok the dates are in column I:12 down to the end or last row (until new dates are entered - where the formula would need to continue), and I just want it moved to the absolute left, do for example if the date was on I:505, I would want it moved to H:505, and blank out the original cell (I:505). I am happy to use VBA on startup and during if needed as it is a heavily formula and macro based spreadsheet.

    Many thanks in advance once again!!

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move date shown in cell to new cell directly left once date has passed

    What will happen to what was in (if anything) H505?

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Move date shown in cell to new cell directly left once date has passed

    It would just be overwritten.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Move date shown in cell to new cell directly left once date has passed

    Okay, the following code is stored in the "This Workbook" module
    Please Login or Register  to view this content.
    See attachment. Is this what you are looking for?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Move date shown in cell to new cell directly left once date has passed

    Absolutely marvellous - exactly what I wanted! Works a treat (as far as I can tell!). Thank you SO much for your help, you're a godsend. Have a great rest of week!

    Kind regards
    Jamie

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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