+ Reply to Thread
Results 1 to 3 of 3

Test whether chosen dates is after today's date

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    42

    Question Test whether chosen dates is after today's date

    Hi guys

    I have a minor problem. I have a userform where the user can choose a date and I have to make a code which test whether this date is legal (meaning that chosen date >= today's date) before the user can continue with the next userform (i.e. the "date-test" is done when the user clicks on a "next"-button and is not allowed to continue before a legal date is chosen).

    Any help is very much appreciated. Thanks for all your help in advance.
    Last edited by h0ps; 11-08-2012 at 09:29 PM. Reason: solved

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Test whether chosen dates is after today's date

    Hi, h0ps,

    maybe this can get you an idea of how to get things going:
    Please Login or Register  to view this content.
    Input in Textbox1 like 01. Jan. 2012 or 01.01.2012.

    HTH
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Test whether chosen dates is after today's date

    Thx you! Problem solved!

+ 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