+ Reply to Thread
Results 1 to 2 of 2

How to check Date input

  1. #1
    Registered User
    Join Date
    01-18-2005
    Posts
    62

    How to check Date input

    Dear all,

    I am creating a form in Excel for user to input data. In my form, there are many textbox. One of textbox is date input that I would like user to input date format dd/mm/yyyy. Is there any code that can check user's input on this textbox.

    Thank you very much.

    Nam

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Nam,

    Use this code...

    If IsDate(TextBox1.Value) = False Then
    <Execute code for non date entry>
    End If


    Sincerely,
    Leith Ross

+ 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