+ Reply to Thread
Results 1 to 21 of 21

Excel 2008 : Calendar PopUp in Excel 2010

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Calendar PopUp in Excel 2010

    I have created an Excel calendar popup in Excel 2007 and I want to share file with a computer that has Excel 2010 installed. All macros are working except for the calendar popup. Anyone knows how to create Calendar popup in Excel 2010?

  2. #2
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    What kind of calendar did you use in XL2007?
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  3. #3
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: Calendar PopUp in Excel 2010

    This is what I have written in Visual Basic
    Option Explicit

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim isect As Range

    If Target.Cells.Count > 1 Then Exit Sub

    Set isect = Intersect(Target, Range("$A$2:$A$1048576"))
    If Not isect Is Nothing Then
    frmCalendar.Show
    End If
    End Sub


  4. #4
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    You can go here to see if this calendar will work for you. You can copy the userform and code over into your workbook and use a command button or something to call the userform up(nevermind, I see that you are using Column A in your worksheet to call it up)....open the attached workbook and see if the calendar works for you before doing too much work.
    Last edited by jwright650; 03-23-2011 at 01:18 PM. Reason: added comment

  5. #5
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: Calendar PopUp in Excel 2010

    I get error message "Cannot find project or library". Marked is the following:
    Private Sub UserForm_Initialize()
    ThisDay = Date

  6. #6
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    Quote Originally Posted by pansovic View Post
    I get error message "Cannot find project or library".
    Yeah, I get that on some machines, while on others there are no errors....I thought maybe your machine might be one that does OK.
    I'd love to know what the hangup is...still trying to solve the mystery.

    Weird because it runs fine in this file(see attached)...try this one.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: Calendar PopUp in Excel 2010

    I get exactly the same mistake

  8. #8
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    I don't know....I'm sorry that I wasn't able to help.
    I opened it up and used the Scrap Sales 2011.xls before I attached it and it worked for me.

    Hopefully someone more knowledable in VBA will chime in and help us figure out why it won't work for you.

  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: Calendar PopUp in Excel 2010

    See the alternatives here

    DatePickers
    Hope that helps.

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

    Free DataBaseForm example

  10. #10
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: Calendar PopUp in Excel 2010

    I am not sure if this is really practical. For example if you want the short format you always have to double-click and change format. Seems like there is no configuration that you always have the short format. Neither can you work with the date as TODAY(), etc. I have yet not tried it on Excel 2010. Will do that tomorrow

  11. #11
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    Ok, here is my last ditch effort. I'm out of ideas. I used one of royUk's UserForm Calendars in this file....see if this could work for you.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: Calendar PopUp in Excel 2010

    I have exact the same problem. Thanks for the effort though no solution yet.

  13. #13
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: Calendar PopUp in Excel 2010

    Excel 2010 does not come with a calendar control. The "can't find project..." error is caused by missing references -in this case probably the calendar control!
    Everyone who confuses correlation and causation ends up dead.

  14. #14
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    What I posted in post#11 works on my XL2010 here at home.

  15. #15
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: Calendar PopUp in Excel 2010

    Yes - that's not a Calendar control.
    My point was to explain why the problems were occurring.

  16. #16
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    RS, yes I understood the intent of your post. I was just stating that for the OP.

    Is the calendar build that I was using in post#6 a calendar control?....I thought it was using code to build the calendar...creating the form and building the buttons and everything appeared to be done by code.

    EDIt: that file in post #6 opens fine on this XL2010 also
    Last edited by jwright650; 03-23-2011 at 07:40 PM. Reason: added comment

  17. #17
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: Calendar PopUp in Excel 2010

    I couldn't tell you at the moment - I'm posting from my phone.

  18. #18
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    Ahhhh, technology on the go...LOL

  19. #19
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: Calendar PopUp in Excel 2010

    Figured out something this morning....try these two files and see if you can use the calendar in them. Rev2 has royUK's calendar in it....Rev3 has the calendar build that I've been using.
    Attached Files Attached Files

  20. #20
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Re: Calendar PopUp in Excel 2010

    Both are working in Excel 2007 and 2010. Though now I will need the same when I click on a cell that automatically opens me the calendar. If possible I as well prefer a calendar that moves to other month with 1 click at right or left of calendar and not thyat I have to pinch first year, month and date.

  21. #21
    Registered User
    Join Date
    09-18-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    66

    Re: Calendar PopUp in Excel 2010

    Hi all, is this thread still active???

    I am wondering how, when you select the date from the userform (in "Scrap Sales" example), to get that date to paste into a cell?

    Cheers
    Martin

+ 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