+ Reply to Thread
Results 1 to 7 of 7

Need a VBA Calendar that is NOT MSCAL.ocx

  1. #1
    Forum Contributor
    Join Date
    04-12-2006
    Location
    Morgan Hill CA
    Posts
    107

    Need a VBA Calendar that is NOT MSCAL.ocx

    I'd like to use the Calendar ActiveX component, but it's giving me headaches because MS decided not to ship/install/activate it consistently. I have a Windows 7 system that gets an error because it is not installed... all my other test system seem to have it configured and working correctly (XP & Vista).

    So I have some options....

    Option 1
    If I could detect the missing Cal functionality at the start of my program, I could avoid the "Could not load an Object because it is not available on this machine." error to the user -- then tell then to go off and install it. Yea - like that's real friendly

    Option 2
    I could rework my installer to install a version of the MSCAL.ocx but which version? If I install a newer version on an older OS will that give me issues? or break existing functionality?

    Option 3
    Don't use the calendar object at all, just create 3 drop-down values, one for the month, day & year. Allow the user to pick from those and forget the pretty calendar.

    Option 4
    Find something or someone that has created a Calendar that does not require the use of the possibly missing MSCAL.ocx.

    I'm leaning towards option 3.

    Thanks,
    Last edited by JWM6; 01-13-2010 at 03:06 PM.

  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: Need a VBA Calendar that is NOT MSCAL.ocx

    See the options here under datepicker

    http://excel-it.com/free_addins.htm
    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 Contributor
    Join Date
    04-12-2006
    Location
    Morgan Hill CA
    Posts
    107

    Re: Need a VBA Calendar that is NOT MSCAL.ocx

    RoyUK,

    Thanks!

    I've downloaded it, installed the add-in and am able to get the JR_DatePicker to show up in a sheet that has a date format in it.

    I need to be able to use this in a user form. I created a new user form and don't seem able to add this to the userform - that's really what I'm looking for - a userform replacement for the MSCAL.ocx
    How can I do that?
    If I can get that to work, I'll have a follow-on question or 2.

    Thanks,

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

    Re: Need a VBA Calendar that is NOT MSCAL.ocx

    I would suggest that you use the combobox example.

  5. #5
    Forum Contributor
    Join Date
    04-12-2006
    Location
    Morgan Hill CA
    Posts
    107

    Re: Need a VBA Calendar that is NOT MSCAL.ocx

    RoyUK,

    OK, something like that will have to do then... Option 3

    Thanks for the responses.

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

    Re: Need a VBA Calendar that is NOT MSCAL.ocx

    I'm working on a new version that can be used as part of the userform,keep an eye on the site for updates

  7. #7
    Forum Contributor
    Join Date
    04-12-2006
    Location
    Morgan Hill CA
    Posts
    107

    Re: Need a VBA Calendar that is NOT MSCAL.ocx

    Will do

    Thanks,

+ 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