+ Reply to Thread
Results 1 to 3 of 3

Userform Textbox Date Format

  1. #1
    Registered User
    Join Date
    06-05-2014
    Posts
    28

    Userform Textbox Date Format

    I have a Userform and 2 text boxes that require users to enter a date. I really need the users to be forced to enter the date in "mm/dd/yy" format or they cannot get passed that text box or at least an error comes up.

    thanks for the tips

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform Textbox Date Format

    You can check if the user has entered a date, in any valid format, using IsDate, then you can use Format to convert it to the specific format you require.
    Please Login or Register  to view this content.
    Last edited by Norie; 06-12-2014 at 10:53 AM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-05-2014
    Posts
    28

    Re: Userform Textbox Date Format

    perfect. thanks a lot

+ 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] Excel 2007, Userform Textbox Date Format and Calendar Control Userform
    By riffology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:18 PM
  2. [SOLVED] Userform to show date format in textbox or label
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2013, 08:55 PM
  3. Date Format in userform textbox is different from excel worksheet?
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2013, 06:46 AM
  4. [SOLVED] UserForm TextBox Date Format with Automatic Dashes
    By saucey in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-17-2013, 01:28 PM
  5. Date Format for textbox in userform
    By processchip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2011, 06:42 AM

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