+ Reply to Thread
Results 1 to 6 of 6

date and time automation in userforms

  1. #1
    Registered User
    Join Date
    04-15-2009
    Location
    morristown, ny
    MS-Off Ver
    Excel 2007
    Posts
    39

    date and time automation in userforms

    I have attached a worksheet with a user form I programmed. In the user form I need the users to plug in the date and time, alot of these. I am afraid this will be too much for the users and they wont use the from.

    Is there automation available to put into the user form like excel date picker?
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: date and time automation in userforms

    You can actually use the DatePicker to display time, set it's Format property to dtpTime.

    However, using DatePicker controls can be problmatical, see

    http://excel-it.com/free_addins.htm

    Also, time example :
    Combo_Time.zip
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: date and time automation in userforms

    Hi,

    Not quite sure what you're asking. However if you're trying to ensure a valid date is picked, you could add three drop down List Boxes, one each for days,months and years, and have the user pick a value from each one. This will ensure you can construct a valid Excel Date 'number'.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    04-15-2009
    Location
    morristown, ny
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: date and time automation in userforms

    I down loaded and installed the date picker. I placed one formatted for the date and one next to it formatted for time. I can not find how to controlsource it so it shows the valve on the finished form. Is there code so when the user is in a text box to open the date or time picker and that valve would be the valve in the text box?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: date and time automation in userforms

    Which date & time picker?

  6. #6
    Registered User
    Join Date
    04-15-2009
    Location
    morristown, ny
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: date and time automation in userforms

    DTPicker from the tool add on list

    Followup note:

    I have tried a number of the suggested dat pickers and other ideas like macros and not found a solution. I the userform1; you can see that there are 38-40 places where the user could need to add the date and time
    Attached Files Attached Files
    Last edited by ed ayers315; 11-02-2009 at 09:33 AM. Reason: I uploaded the newwest revision and have added userform2 that has a dat & time picker

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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