+ Reply to Thread
Results 1 to 7 of 7

How to add a date picker / Calendar from clicking a cell

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    Taunton, Somerset, UK
    MS-Off Ver
    Excel 2007
    Posts
    85

    How to add a date picker / Calendar from clicking a cell

    Hi Guys. I am trying to add a date picker - so when you click on a cell, it opens up a mini calendar that you can select a date on, which will then fill that cell with the selected date.
    I know that there is supposed to be a Calendar form control, but My version doesn't seem to have it, and when I go to add additional controls, it isn't there either. Is it possible to do this with my version?
    (I am using 2007)
    Thanks in advance.

    Richard

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to add a date picker / Calendar from clicking a cell

    http://www.rondebruin.nl/calendar.htm
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-08-2013
    Location
    Taunton, Somerset, UK
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: How to add a date picker / Calendar from clicking a cell

    Thanks for this.
    Okay, so now I have this control installed.... but using it??... crikey.. I keep getting a run time error - object required message no matter which cell I click.

    I have never used macros or active x controls before, so this part makes no sense to me....
    Looking at http://blogs.office.com/b/microsoft-...e-pickers.aspx this is exactly what I need, but nothing tells me how to use it on my own sheets...?

    Are you able to walk me through it step by step from the start at all?... sorry to be a pain, but once the penny drops and I understand how it works, I'll be fine...Activity sheet test.xlsm

    I've added my currently basic sheet, and entered notes in the cell

    Thanks

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to add a date picker / Calendar from clicking a cell

    sorry no idea

  5. #5
    Registered User
    Join Date
    02-08-2013
    Location
    Taunton, Somerset, UK
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: How to add a date picker / Calendar from clicking a cell

    okay... thanks anyway...

  6. #6
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: How to add a date picker / Calendar from clicking a cell

    I use this code to pop up calendar in my sheet

    If Target.Column = 5 Then
    Cancel = True
    Application.Run "Module1.OpenCalendar"

    End If
    WorkSheet change event
    Last edited by zplugger; 02-09-2013 at 12:59 PM.

  7. #7
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,170

    Re: How to add a date picker / Calendar from clicking a cell

    I did a change to the code, seems to work fine.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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