+ Reply to Thread
Results 1 to 3 of 3

Check Date format before proceeding

  1. #1
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Check Date format before proceeding

    I have quite an extensive spreadsheet set up for entering data and saving etc.

    I use VBA to bring up a calendar(G1) for the date to be selected by the user.

    However, i have found some users tend to manually edit the date if a job was >1 day, so they enter say [2 & 3 /1/2013].

    This then causes other VBA errors due to the date not being a valid format as dd/mmm/yyyy.

    Is there a quick way to use VBA to confirm that a valid date format in dd/mmm/yyyy has been entered?
    I could then run that BEFORE the data is saved with an incorrect date format.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Check Date format before proceeding

    Make use of IsDate(expression) VBA function.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    463

    Re: Check Date format before proceeding

    upload a sample file

    Regards
    CA Mahaveer Somani

+ 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