+ Reply to Thread
Results 1 to 4 of 4

Cancel out of Input box for error handling for dates

  1. #1
    Registered User
    Join Date
    08-12-2009
    Location
    Perth, WA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Cancel out of Input box for error handling for dates

    The code below provides input boxes for the User to enter a "To" and "From" date range - the purpose is to ensure the correct date format is entered when a report needs to be run for a specified period. This works fine by displaying a "Try entering valid From date" if the User gets the date format wrong. However...

    If the User for some reason wants to cancel out of entering a date this will also trigger the "Try entering valid From date" message. It's one of those annoying loops that forces the User to go through the entire subroutine without being able to cancel out or abort if need be. Any ideas how to build in a Cancel out option for this?

    Also, when both dates have been entered correctly a message box is displayed for each date to confirm to the User the dates they have just entered however there is no description on each of the messages boxes to distinguish the "To" and "From" dates. Is there anyway of adding text to these message boxes to include"To" and "From"?

    Please Login or Register  to view this content.

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

    Re: Cancel out of Input box for error handling for dates

    The user can enter a date with any valid Excel date format.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-12-2009
    Location
    Perth, WA
    MS-Off Ver
    Excel 2003
    Posts
    93

    Re: Cancel out of Input box for error handling for dates

    Brilliant AFrog - This works well!

    Is it possible to add a Cancel out option to the date confirmation box just in case the User realises they have netered the wrong date?

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

    Re: Cancel out of Input box for error handling for dates

    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