+ Reply to Thread
Results 1 to 7 of 7

Convert Today()+3 to text

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    10

    Convert Today()+3 to text

    Hi all,

    I have a column (L) which prints today()+3 if the the corresponding column (K) is "Yes":

    Please Login or Register  to view this content.
    The problem I have is, when tomorrow comes, the +3 still remains live and so, it adds another day onto the date.

    What I need is, some sort of 'Before saving the worksheet' for the macro to convert any dates on there into text. Within L5:L36665

    Please Login or Register  to view this content.
    Any help would be hugely appreciated.

    Kind Regards,
    Last edited by phish3rz; 12-10-2012 at 12:03 PM. Reason: Solved!

  2. #2
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Convert Today()+3 to text

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Convert Today()+3 to text

    Hi Legend Rubber, thank you for your reply. I've added this however, the formula is still there after I save the document. Macros are enabled as well. If you could help shed some light as to why it's not working I'd appreciate it.
    Last edited by phish3rz; 12-10-2012 at 11:31 AM. Reason: spelling.

  4. #4
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Convert Today()+3 to text

    can you attach your worksheet?

  5. #5
    Registered User
    Join Date
    12-07-2012
    Location
    england
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Convert Today()+3 to text


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

    Re: Convert Today()+3 to text

    To keep the formulas that have not already produced a date, try this code
    Please Login or Register  to view this content.
    You cannot have it keep the formula and keep the date within the same cell, if that is what you are asking.

    Edit: Opps, fixed code above
    Last edited by ChemistB; 12-10-2012 at 11:47 AM. Reason: Corrected code, removed "Selection"
    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

  7. #7
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Convert Today()+3 to text

    @phish3rz
    That Code needs to go in the Workbook, not Module1

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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