+ Reply to Thread
Results 1 to 3 of 3

Thread: Date and Time picker custom formats

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    60

    Date and Time picker custom formats

    Hi all,
    I'm using a userform with a date and time picker in Excel 2003. I want to set the format so the user will be able to select both date AND time.

    I tried this

    UserForm1.Start.Format = dtpCustom
    UserForm1.Start.CustomFormat = "MM/DD/YYYY HH:nn:ss"
    but it only shows the date picker.
    Is it even possible to display both the date and the time controls simulatniously?

    Thanks
    Nick

  2. #2
    Forum Guru Domski's Avatar
    Join Date
    12-14-2009
    MS-Off Ver
    What does it matter?
    Posts
    3,933

    Re: Date and Time picker custom formats

    I think you will need to use more than one control and then combine the results to get your date/time value.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    06-11-2009
    Location
    Berlin
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Date and Time picker custom formats

    Quote Originally Posted by Domski View Post
    I think you will need to use more than one control and then combine the results to get your date/time value.

    Dom
    I supposed as much. Thanks anyway Dom.

+ 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.2.0