+ Reply to Thread
Results 1 to 3 of 3

VBA code to popup a calender

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    VBA code to popup a calender

    Hi there,
    I'm using Excel 2010 and have a form that I'd like a calendar to popup if the content of the cell is a date. I get a runtime error 424; object required. Below is the code that I used in Excel 2003. The highlighted row is where the error is thrown.


    Please Login or Register  to view this content.

    Thanks.
    Mike

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags; I have added them for you because you are still new. --6StringJazzer
    Last edited by 6StringJazzer; 01-21-2014 at 06:23 PM. Reason: code tags

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: VBA code to popup a calender

    What is Calendar1? If you built this in Excel 2003 but are now using a different version I am guessing it is a DTPicker or something similar that is not built in; you have to explicitly import it into Excel.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-20-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: VBA code to popup a calender

    Yes, I had to import the MS MonthPicker activex control to get the Calendar function. When I changed "Calendar1" to "MonthView1" the error went away.
    Thanks for triggering that resolution, Jeff. I wouldn't have thought of it. This problem is resolved.

    Mike

+ 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] Excel Calender Code
    By Dnyan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2013, 06:14 AM
  2. Calender Code
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-02-2011, 08:49 AM
  3. [SOLVED] what is the code for calender dates?
    By gabe in forum Excel General
    Replies: 1
    Last Post: 07-04-2006, 07:15 AM
  4. <HELP>Modify calender code for a combo box
    By Mark Dullingham in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-23-2006, 09:55 PM
  5. [SOLVED] combo box help-calender code
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2005, 03:10 PM

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