+ Reply to Thread
Results 1 to 5 of 5

Current date error in Code - MUST BE MODIFIED

  1. #1
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Current date error in Code - MUST BE MODIFIED

    Hi,

    This code checks if there is any Anniversary today... The issue is the code is seeing today as the same as 01/13/0000 (whatever year) ... it is seeing the 01/13 as November 3rd

    Can this below code be modified to prevent this error???

    Please Login or Register  to view this content.
    Best Regards,

    John

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Current date error in Code - MUST BE MODIFIED

    Hi,

    i tried your code and it works without any issue, can you check the values in the date column.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Current date error in Code - MUST BE MODIFIED

    Thanks for replying - the date column on the sheet is formatted 00/00/0000

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Current date error in Code - MUST BE MODIFIED

    Mine is formatted as mm/dd/yyyy .

  5. #5
    Forum Contributor
    Join Date
    09-10-2008
    Location
    Phoenix, AZ
    MS-Off Ver
    Office 365
    Posts
    985

    Re: Current date error in Code - MUST BE MODIFIED

    same with me - mm/dd/yyyy . I just put 000's

+ 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. Code to update cell with current date & time when other cells are modified
    By gjtbackwards in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-12-2014, 07:54 PM
  2. Error with current date and time code
    By milt2010 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-27-2013, 02:42 PM
  3. Replies: 1
    Last Post: 08-04-2011, 03:45 PM
  4. Replies: 2
    Last Post: 08-03-2011, 12:40 PM
  5. Replies: 1
    Last Post: 01-05-2005, 12:25 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