+ Reply to Thread
Results 1 to 3 of 3

How to Check Date Format using Macro Enetred by User ....

  1. #1
    Registered User
    Join Date
    06-28-2013
    Location
    New delhi
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    12

    Post How to Check Date Format using Macro Enetred by User ....

    Hi All

    My question is that how can i check the date format in vba code .
    In my excel file end user can enter any type of date format . But i want to restrict them to enter the date only in (dd/mm/yyyy).

    means if user enter "01/13/2013" then it should return error .
    Please help me i am searching a lot for that but i dont get right answer

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to Check Date Format using Macro Enetred by User ....

    This will trap the specific error

    Please Login or Register  to view this content.
    but bear in mind that it can only detect a date error for dates entered after the 12th of each month...
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    06-28-2013
    Location
    New delhi
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    12

    Re: How to Check Date Format using Macro Enetred by User ....

    Thanks AndyLitch


    I m trying your code ....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to check postal code format for user form text box
    By cpost in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 03-12-2013, 12:47 PM
  2. Check user input format
    By JSebastianRock in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2012, 11:58 AM
  3. [SOLVED] VBA. Check office user name, if certain format is not met then MsgBox and exit workbook
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2012, 06:58 AM
  4. Stamp Date and Time with User Name When Check box ticked
    By raxs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2012, 01:22 PM
  5. Macro to force format and check barcode check digit
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-02-2009, 10:27 AM

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