+ Reply to Thread
Results 1 to 9 of 9

date on the userform

  1. #1
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    date on the userform

    here is my situation. I have this userform it is working fine so far accept for two things. One when I click on the calendar (bottom right) to select the date for shedule date it works fine but when I do the same thing on the requested date but selecting different date I still get the same date as the shedule date. I want to have different date on the requested date from the schedule date. Is this possible? the second one is the start time I want the start time to appear when I launch the form. the form and the code are attached.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526
    instead of using a general calendar, you could use
    Microsoft Date and Time Picker Control, in place of the textboxes
    when in edit for your userform, right click on the toolbox ans select additional controls
    find
    Microsoft Date and Time Control and hit the select box, then OKAY or whatever to apply the addition
    Then you have that new control, in the toolbox, replace the date textboxes with the date picker control
    Lots of info on Date and time picker for excel if you google it

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    One thing to be aware of withe date and timepicker is that it is not always available, some end users might not have it on their machines.
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526
    Quote Originally Posted by royUK
    One thing to be aware of withe date and timepicker is that it is not always available, some end users might not have it on their machines.
    Right, and it sucks if somebody on another computer, accesses the workbook from a network that doesn't have the controls, when they save the workbook, the controls are lost, and people start wondering where the controls keep disappearing to.....
    anyway make a control part of the workbook?

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

    Why are you surprised by this?

    That's what you are telling the code to do.

    Perhaps something like this would be better.
    Please Login or Register  to view this content.

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

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    Thanks guys that really helped. Is there a time picker that I can use to pick a time similar to the date picker for the start time field?

  8. #8
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    I figured out the time picker.

    Thanks again.

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

    Do you realise you could replace the existing textboxes with date/time pickers?

    Perhaps that's what you've already done.

+ 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