+ Reply to Thread
Results 1 to 3 of 3

Date and Time Formats in UserForms

Hybrid View

Guest Date and Time Formats in... 01-12-2006, 11:45 PM
Guest Re: Date and Time Formats in... 01-13-2006, 12:15 AM
Guest Re: Date and Time Formats in... 01-13-2006, 12:25 AM
  1. #1
    Zani
    Guest

    Date and Time Formats in UserForms

    I can insert the current date and current time into textboxes on a UserForm,
    what I need to do is completely set the format so that if the user tries to
    enter the date or time in the wrong format the Userform wont accept it and
    gives them a message saying so.

    I want to use dd/mm/yy for the date and hh:mm (24 hour clock) for the time.

    Any ideas - am stuck now!

    --
    Zani
    (if I have posted here, I really am stuck!)


  2. #2
    Tom Ogilvy
    Guest

    Re: Date and Time Formats in UserForms

    There are no validation settings for these controls. You would have to use
    the control's built in events to execute code that does the validation.

    --
    Regards,
    Tom Ogilvy


    "Zani" <Zani@discussions.microsoft.com> wrote in message
    news:2F1867A8-B2D8-4582-9C79-C351241581B7@microsoft.com...
    > I can insert the current date and current time into textboxes on a

    UserForm,
    > what I need to do is completely set the format so that if the user tries

    to
    > enter the date or time in the wrong format the Userform wont accept it and
    > gives them a message saying so.
    >
    > I want to use dd/mm/yy for the date and hh:mm (24 hour clock) for the

    time.
    >
    > Any ideas - am stuck now!
    >
    > --
    > Zani
    > (if I have posted here, I really am stuck!)
    >




  3. #3
    Zani
    Guest

    Re: Date and Time Formats in UserForms

    Thanks Tom. Sorry for being ignorant here, but could you show me an example
    of what you mean, I'm not sure I understand - maybe my brain is just fried!
    --
    Zani
    (if I have posted here, I really am stuck!)



    "Tom Ogilvy" wrote:

    > There are no validation settings for these controls. You would have to use
    > the control's built in events to execute code that does the validation.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Zani" <Zani@discussions.microsoft.com> wrote in message
    > news:2F1867A8-B2D8-4582-9C79-C351241581B7@microsoft.com...
    > > I can insert the current date and current time into textboxes on a

    > UserForm,
    > > what I need to do is completely set the format so that if the user tries

    > to
    > > enter the date or time in the wrong format the Userform wont accept it and
    > > gives them a message saying so.
    > >
    > > I want to use dd/mm/yy for the date and hh:mm (24 hour clock) for the

    > time.
    > >
    > > Any ideas - am stuck now!
    > >
    > > --
    > > Zani
    > > (if I have posted here, I really am stuck!)
    > >

    >
    >
    >


+ 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