Closed Thread
Results 1 to 9 of 9

pop up calendar to choose dates?

  1. #1
    Registered User
    Join Date
    09-10-2008
    Location
    WV
    Posts
    5

    pop up calendar to choose dates?

    Can anyone tell me how I can make a calendar that pops up when the user mouse clicks or tabs/arrows over to a cell so they can choose a date instead of manually typing in the date?
    Last edited by zoneblitz61; 10-04-2008 at 12:49 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Not the best, but you can try
    http://cpap.com.br/orlando/ExcelCale...re.asp?IdC=New
    I need your support to add reputations if my solution works.


  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi Zone,

    A pretty simple way to do this is:

    1. In your worksheet, click Insert -> Object -> Calendar Control 8.0
    .... If you don't see Calendar Control 8.0 in the list, mscal.ocx may not be registered properly or may be missing (in which case you can download a copy and put it into c:\windows\system32, then register it from the Start -> Run command using regsvr32 mscal.ocx). After registering it, re-open Excel and try step 1 again.

    2. Once the calendar is on the worksheet, you should see it along with a small menu with some design tools on it. Click that so it is selected (in Design mode) then double-click the calendar itself. This will open the VBA Editor.

    3. You should see the code shown in blue; you just need to add the code in red.
    Please Login or Register  to view this content.
    4. In the VBA Editor, just above the code shown in step 3, are two drop-down boxes. From the first one, select 'Worksheet'; from the second choose SelectionChange. That will add a new Sub/EndSub to your code window. Update that code to what's shown below:
    Please Login or Register  to view this content.
    Change the cell reference of "$A$2" to the cell you want to trigger the pop-up. Finally, close the VBA Editor and save your file.

    Anytime you click on or arrow into cell A2 (or any cell you define), the calendar will appear for you to pick a date. Any date you pick will be entered into that cell. (When you select any other cell, the calendar will disappear.

    Hopefully that helps you out, and it doesn't require a UserForm or add-in.

  4. #4
    Registered User
    Join Date
    09-10-2008
    Location
    WV
    Posts
    5
    @pjoaquin: awesome, thanks. How can I do that but for an entire column instead of just one cell, i.e. the user clicks on any cell in column B?

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    change
    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  6. #6
    Registered User
    Join Date
    09-10-2008
    Location
    WV
    Posts
    5
    you guys rock. thanks.

  7. #7
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    zoneblitz61

    If your query has been fully answered how about marking your thread Solved

  8. #8
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: pop up calendar to choose dates?

    This is awesome, just what I was looking for.

    One question, is there a way to make the location of the calendar relative to what cell you are in? Right now I have a locked pane that the calendar is in so it's always on the screen, however I'd like it to pop up in the cell to the left (or right) of the one being clicked on..is this possible?

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

    Re: pop up calendar to choose dates?

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Hope that helps.

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

    Free DataBaseForm example

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find a list of dates in a changing calendar!
    By craigafrica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2008, 10:31 AM
  2. Replies: 3
    Last Post: 06-02-2008, 06:28 PM
  3. linking cell dates to a calendar
    By imtaylor in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2008, 03:56 PM
  4. Calendar with different prices for different dates
    By jamesjohn in forum Excel General
    Replies: 2
    Last Post: 06-17-2007, 07:25 AM
  5. Going insane!
    By kik in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-31-2007, 08:21 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