+ Reply to Thread
Results 1 to 7 of 7

date problem?

  1. #1
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100

    date problem?

    Hi everyone
    Happy new year before all!!!! I have got a problem with a date, in fact I would like to change a value of a cell if the date of the system is > 31/02/2007 (very basic) but it can compare dates only if they are in the same month: for example, today we are the 10th so it can compare the today's date only with all the days of january, once it becomes 01/02/2007 it doesn't work.
    my macro is If Date$ is >#31/02/2007# then Activecell.Value = #nothing done#.


    Do you know how I can solve this ??

    Thanks

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    It would help if you used valid dates

    When is 31/02/2007????????

  3. #3
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100
    Sorry for my error (I am very tired) but it was just an example this is not due to this because it doesn t work as well with 31/03/2007.

  4. #4
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    Using local date parameters is always problematic. I suggest using something that will be unambiguous, such as

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100
    Thank you for your answer, it works well. One more question: What does isdate means in your formula??

    Thanks again

  6. #6
    Registered User
    Join Date
    02-06-2006
    Posts
    42
    I reckon it checks to see if the value it's given is a date.

  7. #7
    Forum Contributor
    Join Date
    11-22-2006
    Posts
    100
    Thank you

+ 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