Consulting

Results 1 to 6 of 6

Thread: Dates

  1. #1
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location

    Dates

    date in A3 is later than in A2.
    Plse supply code.
    Attached Images Attached Images

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You could use Data Validation with a Custom type and a formula of

    =SUMPRODUCT(--($A$2:$A2>=$A4))=0
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location
    Quote Originally Posted by xld
    You could use Data Validation with a Custom type and a formula of

    =SUMPRODUCT(--($A$2:$A2>=$A4))=0
    Thank you for your formula.
    As I want to add code to my macro.
    vba code rather than Data Validation, plse

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Then we would need to see what your code does to know how to do a test.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location
    Quote Originally Posted by xld
    Then we would need to see what your code does to know how to do a test.
    If date in A3 is later than in A2 or If dates in A: alreagy sorted,
    go to A6 and fill-down from A6 to A10

  6. #6
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    asdzxc, you have a habit of using the Quote tags consistently. Only quote if required and simply type your questions, queries or comments without the quote please.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •