+ Reply to Thread
Results 1 to 7 of 7

Embed Microsoft Date / Time Picker control with Workbook

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Embed Microsoft Date / Time Picker control with Workbook

    Hi guys and girls,

    I have a Workbook with userform where I use Microsoft Date / Time picker control.
    However, not all machines where this workbook is used have the OCX (MSCOMCT2.ocx) that allows this control installed.
    (source: here)
    Is there any way to 'embed' the control with the workbook, so it will work regardless of the OCX being available on the machine?

    Since I suspect the answer to this to be no - is there any good alternative available, apart from a standard textbox?
    Thanks,

    Jasper

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Embed Microsoft Date / Time Picker control with Workbook

    As far as I know the answer is NO

    You have to use form added in that workbook and use VBA Change/Selection event to get the date picker

    http://www.rondebruin.nl/win/s8/win003.htm


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Embed Microsoft Date / Time Picker control with Workbook

    Thanks, I went over Ron's site and saw a couple of alternatives that are not depending on any dll or ocx to be registered.
    However, to have 100+ lines of additional code just to have a nice looking date picker seems a bit much to me.
    Damn you Microsoft!

    If noone else has any decent alternatives, then I'll just go with a textbox input...

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Embed Microsoft Date / Time Picker control with Workbook

    Just transfer (Export) the DatePicker Forms and Modules to your workbook and use it in your workbook.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Embed Microsoft Date / Time Picker control with Workbook

    Check this attached file.

    You can just export the form and Modules to your desired excel workbook and use double click event to pop up the Date Picker
    Attached Files Attached Files

  6. #6
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Embed Microsoft Date / Time Picker control with Workbook

    It's still a bit of a pain to remove all redundant stuff from it, but I guess I did that.
    Now, can I capture when someone clicks a textbox on a userform?

    Basically I want when the user clicks/activates the textbox next to "start date" to pop up the form.

  7. #7
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Embed Microsoft Date / Time Picker control with Workbook

    Never mind, found it - Thanks Sixthsense for your help!

+ 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] Microsoft Time and Date Picker Control SP6 acting up
    By bibu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2014, 12:24 PM
  2. Microsoft Date & Time Picker Control - Linked Cell Query - Can anyone help?
    By ChrisBester in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 06:26 AM
  3. Microsoft Date and Time Picker Control
    By intrigued94 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2013, 12:07 PM
  4. Microsoft Date and Time Picker Control modification
    By cabinetguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2011, 11:53 AM
  5. microsoft date and time picker control
    By Don in forum Excel General
    Replies: 2
    Last Post: 05-20-2005, 10:06 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