+ Reply to Thread
Results 1 to 25 of 25

Excel Date Picker (Office 365)

  1. #1
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Excel Date Picker (Office 365)

    Hello:

    I'm sure there exist many posts about Excel "Date Pickers". I searched on Google and certainly found a plethora of potential solutions.

    Unfortunately, as I'm trying to use the date picker on my work laptop, I'm limited wrt potential solutions.

    For example, I came across an example (posted at https://www.vertex42.com/apps/minicalendar.html). It works great on my personal computer; however, given that I cannot add "Add-Ins", it is a no-go solution.

    Other potential solutions (e.g., https://www.wallstreetmojo.com/excel-date-picker/) would require to create a combo box for each cell. That is not ideal as I need to use the date picker for at least 40 rows.

    My question:
    Does someone have a recommendation for a solid AND simple date picker which does NOT require using any ADD-INs? Again, I'd like to be able to click on any of the ~40 cells and then have a very simple calendar pop-up (nothing fancy) for choosing/storing a date. Thanks.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Excel Date Picker (Office 365)

    I think you are out of luck. Microsoft "depreciated" this feature for 64 bit office. They decided that people really didn't want it.

    However, I did find this https://www.contextures.com/exceldat....html#download - Select the cell where you want the date and click the button. I suppose you could also map the macro to a CTRL Key

    The issue with this is application that you will have to integrate the code and the form into your workbook. It isn't that difficult to do. If you want, I can walk you through the process.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    dflak -- thank you for the response. I actually found that site too. Unfortunately, my company seems to be blocking any attempt install the file. I'm getting blocked message left and right. Urgh.

    Like you said, seems like I'm "out of luck". Appreciate the help though.

    Cheers,
    Tom

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Excel Date Picker (Office 365)

    Can you save a file as XLSM or XLSB and record or add a macro? I can see where a truly paranoid organization won't let you do this. If you are allowed macros, then we still can proceed.

    Were you able to download the file in the link and run the macro?

  5. #5
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    430

    Re: Excel Date Picker (Office 365)

    Don't you love when Microsoft decides a useful feature is something we don't need? Like, moving my task bar to left of the screen... or not combining app icons.

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    for all those that want a pop up calendar - set the type of format you require in the button class module - demo works from double click in columns A & B - set this range in worksheet module.
    button may not be fully visible in some screen resolutions - however once again easy enough to tailor to your need by altering size on the simple userform.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  7. #7
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    dlfak:

    Sorry for the delayed response. Allow me to follow up in bullet format:
    - Yes, I can save Excel with XLSM format.
    - However, I could NOT save the 2003 sample file (XLS) for some reason. Maybe it's due to Office 365 (64-bit) that I'm running on my work computer.
    - Also, once I tried exporting the form and then importing it into a 365 version, I got several errors.

    //

    torachan:
    I just downloaded your example. See feedback below:

    - Wow, that is perfect!
    - It's such a simple solution.
    - The only thing is that the calendar dates seem to be chopped off a bit.
    - I'll try enlarging the shapes so that it looks a bit cleaner.
    - Will let you know if I run into any issues.
    Attached Images Attached Images

  8. #8
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan:

    Your solution is brilliant! Also, it is absolutely easy to modify (e.g., see updated version with larger date shapes and modified colors).

    //

    Also, thanks to all other contributors who assisted in this effort. I appreciate the help.
    Attached Images Attached Images

  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    thanks for the feedback and added rep point - glad to have helped.
    you will find it easy to modify e.g. start week on a Monday or setting year range covered +/-

  10. #10
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan -- my pleasure. Yes, it is very straightforward to modify the calendar. I've dabbled w/ the format a bit more. See attached my latest snapshot.

    Also, and most importantly, plugging the form (and VBA) into my actual spreadsheet worked w/o any issues whatsoever. Nice!!!
    Attached Images Attached Images

  11. #11
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    Please see post #10 for the latest version...

    Final comment... again, this calendar works fantastic and is extremely easy to modify. What would make this great calendar even *more perfect* would be the ability to have a "Today" button. I just took a snapshot of, e.g., the calendar in Outlook. Just some food for thought...
    Attached Images Attached Images

  12. #12
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    'TODAY' button added - extra code is annotated in the 'btnClass' module.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan:

    Wow! That is fantastic!! I truly appreciate your continued assistance w/ this scenario. I downloaded the updated file and it's perfect. Since I changed my format, I'll copy the additional code into my actual version.

    Again, many thanks!!

  14. #14
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan:

    Again, your sample XLSX works great. I now tried integrating the changes into my spreadsheet. I'm running into a "Run-time error 13".

    Here's what I've done:
    - Copied all code in the Btn class from your version/sample into my version.
    - Renamed all instances of "Calender" to "Calendar" (this is the preferred American English convention). I worked ok w/ my earlier version w/o the Today button.
    - Copied all VBA code from Sheet1 into my Sheet1 equivalent worksheet. Also replaced the single instance of "Calender" with "Calendar".
    - Added new command button to my calendar and named it "cmdTODAY". Added "Today's Date" as its caption.

    Here's what happening now:
    - Everything works fine when picking a date from the calendar.
    - However, when clicking on "Today's Date", it actually adds "Today's Date" into the cell (vs. 12/15/2022).
    - At the same time, I get the run-time error.

    Now, when clicking on "Debug", the line "ActiveCell = CDate(ActiveCell)" is highlighted in yellow.

    My question: Did I miss adding some code from your latest sample file into my actual file?
    Attached Images Attached Images
    Last edited by skydivetom; 12-15-2022 at 04:32 PM.

  15. #15
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    did you rename the userform - sorry the spelling was accidently done in my very first app some years ago - I have kept it the same so that I know its many variations can be grafted into my apps without having to do a lot of editing.
    its picking up the button caption and prefixing it to the date string because it is the last button in the group - you need to go through the entire code there is still an original name somewhere.
    the name is irrelevant as long as it is the same throughout.

  16. #16
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan:

    It's working fine now... it really was a *crazy* reason as to why the Today command button didn't work in my actual spreadsheet.

    Background:
    - I compared all the code (your example) vs. my actual code. I could NOT locate any differences.
    - Ultimately, I then copied my differently formatted calendar into your version and made the required adjustments (e.g., renaming the calendar objects, different RGB colors, etc.).
    - It then worked fine.
    - In the last step, I changed the command button's caption from "TODAY" to "Today". And BAM it then stopped working and I got the run time error again.

    I would have never guessed that the line
    Please Login or Register  to view this content.
    is case sensitive. So, once I changed that line from "TODAY" to "Today", it then worked w/o issues. GREAT!!

    Again, thanks!
    Tom
    Last edited by skydivetom; 12-16-2022 at 05:59 AM.

  17. #17
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    glad you solved it - its the obvious simple bits that are not always obvious.

  18. #18
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan:

    Forgive me for a quick follow-up. First, allow me to re-iterate that your solution works great!!

    At this time, I merely try to change the format of the calendar a bit. Ideally, I'd like to "flatten" the command buttons. Based on my research though, I don't think it's possible. However, I came across some recommendations where individuals recommended to use, e.g., shapes.

    As I didn't see any shapes, I tried to use textboxes vs. the command buttons. That didn't seem to work for me. My question... do you have a recommendation as to how I need to module if I wanted to replace all command buttons with textboxes?

    Thank you,
    Tom

  19. #19
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    there has to be a question, why ? I can not understand the logic, I need to understand a reasoning for attempting the use of a totally inappropriate control.

  20. #20
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    Hi -- thanks for the follow-up.

    I hear you loud and clear... the best control is the command button. For formatting purposes only, I was hoping to change the command buttons' appearance to "flat". I doubt that property does exist though.

    So, again, based on reading other posts, some people (different posts) recommended to use custom shapes (or textboxes). No big deal... the importance is that your example works as intended. I was merely trying to dabble w/ the calendar format a bit.

    Thank you,
    Tom

  21. #21
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Excel Date Picker (Office 365)

    you could use Labels and use the click_event alternatively have a look at Andy Popes site in the link below - I would have to think more deeply into intercepting the click_event on the shapes.
    I would think it could be possible to use the image box - positioning the numbers (caption) may need more code than the internal property already available in the command button.
    I like to see the boundaries explored - stretching the 'grey matter' - interested to see the outcome.
    The attached works with very little code - but it has a lot of graphics.
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    08-06-2018
    Location
    Virginia
    MS-Off Ver
    2019
    Posts
    342

    Re: Excel Date Picker (Office 365)

    torachan -- yes, quite a nifty userform. I'll check out Andy's site. Thanks for the link.

  23. #23
    Registered User
    Join Date
    09-25-2013
    Location
    GNV, FL
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Excel Date Picker (Office 365)

    id like to chime in and say this is the most amazing thing ever!
    ive incorporated into a spreadsheet ive been working on.
    The only question i have, is, what controls the location of the pop-up calendar?
    EDIT: NM! Figured it out!

    thank you so much guys!
    Last edited by fll_punk; 10-20-2023 at 12:27 PM.

  24. #24
    Registered User
    Join Date
    12-28-2023
    Location
    San Diego, CA
    MS-Off Ver
    365
    Posts
    1
    Quote Originally Posted by torachan View Post
    'TODAY' button added - extra code is annotated in the 'btnClass' module.
    Hi, I am a complete Excel beginner and I have been looking for something like this for a while now! Only problem is, I don't know how to incorporate it into my workbook or even customize the calendar itself :/

  25. #25
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Excel Date Picker (Office 365)

    Quote Originally Posted by jpauleen View Post
    Hi, I am a complete Excel beginner and I have been looking for something like this for a while now! Only problem is, I don't know how to incorporate it into my workbook or even customize the calendar itself :/
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Native Excel Date Picker [want date only, not time]
    By Adam Schaefer in forum Excel General
    Replies: 4
    Last Post: 02-06-2020, 12:34 PM
  2. how to add date picker in excel cell to enter a date
    By roofi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2019, 10:01 AM
  3. How to Add Date Picker in Excel
    By Shahbazk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2018, 10:50 AM
  4. Setting date picker date and having 2 columns to each date for excel calendar
    By bqheng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2017, 11:13 PM
  5. Need Excel Date Picker Without VBA or any Add-ins
    By nivivani in forum Excel General
    Replies: 19
    Last Post: 04-05-2016, 08:43 PM
  6. Excel Date Picker
    By Wshadow in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-12-2008, 01:12 PM
  7. [SOLVED] Is there a way to get a Date Picker Box in Excel?
    By Andrew Holzman in forum Excel General
    Replies: 1
    Last Post: 01-24-2006, 05:50 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