+ Reply to Thread
Results 1 to 2 of 2

Input date via use of input box with validation

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Input date via use of input box with validation

    I'm trying to create an input box which will do two things (1) ask the user to enter a date in mm/dd/yyyy format and present an error message if the date is not valid to either retry or cancel and (2) the date entered must be a Friday, any other day of week will ask the user to retry or cancel. Not sure if this is possible with a simple input box. I'm mainly interested in part one of question but part two is only an enhancement. Thanks in advance for any comments.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Input date via use of input box with validation

    Try something like this. The user could enter any date format that Excel will recognize as a date. The date is converted to a serial date (numeric value). You can set the date's output format later in the code if you paste it in a cell.

    Please Login or Register  to view this content.

+ 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