+ Reply to Thread
Results 1 to 10 of 10

calendar pop up

  1. #1
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690

    calendar pop up

    Hi Guys
    Borowed This Code From The Site And Indeed It Comes In Very Handy

    Please Login or Register  to view this content.
    What I Personally Want It To Do Though Is When A Date Is Selected It Will Go Back To The Spreadsheet Itself Without Having To Click The Sheet Myself

    Is This Possible?


    THANKS
    Last edited by stevesunfold; 10-06-2008 at 11:19 AM.

  2. #2
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136

    Calendar pop-up solution?

    Indeed it is....this is what i use....

    Please Login or Register  to view this content.
    With Range("x:y") representing the range of cells you want the calendar to be active in!!!

    Hope that works for you!

    Ali Mac

  3. #3
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    hi retro
    looks promising but when i put d4 into the range it comes up with run time error

  4. #4
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136
    If you only want it in one cell try Range("d4:d4").
    I use it for around 100 odd cells. I don't see why range won't work for just one cell if you put it in like that. If you wanted to expand the number of cells it works on (this was my problem a while ago) in the future then range is the way to go. eg. in cells d4, d5 and d6 then Range("d4:d6") would make it pop up there. So try d4:d4.

  5. #5
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    hi retro
    appreciate you replies but still the same

  6. #6
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136
    Apologies if i'm insulting your intelligence, but i'm relatively new to this and don't know what is standard knowledge/practice.
    Have you enable the calendar control thingy:
    Insert > Object... > Calendar Control ???
    That's what i had to do first time around.
    Oh, and make sure SelectionChange is in the second drop-down on the VBA editing page above and to the right of your code.
    Other than that then I'm afraid i know nothing.

    Try posting what you have on the forum so i can see.....not that i really know what i'm looking at!!!

  7. #7
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    retro

    i am so sorry my friend and thanks for your patience.

    i was trying your code in a new spreadsheet and hadnt enabled the calendar control ( feel stupid now )

    the last thing i would ask you kindly to help with is
    i want this only to happen in cells d4 and cells d14 so its no a range so to speak just the two selected cells

    once again thanks so much for your help

  8. #8
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136
    ("d4:d4, d14:d14") should do the trick!! :-)

  9. #9
    Forum Contributor
    Join Date
    06-23-2007
    Posts
    690
    thanks retro works a treat
    youre a star

  10. #10
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136

    Thumbs up Result!!

    No problem squire...pleasure to be of assistance.
    It's my first bit of help i've given out...oooh, i feel all warm inside!!!

+ 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. VBA Calendar Control does not show day numbers. ??
    By Richard Buttrey in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2008, 08:26 PM
  2. Filling out calendar based on another sheet
    By dlroo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2008, 03:33 PM
  3. Replies: 3
    Last Post: 06-02-2008, 06:28 PM
  4. The calendar userform appears blank
    By lottesfog in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-26-2008, 12:57 AM
  5. creating a fairly complicated calendar
    By Jayhawks88 in forum Excel General
    Replies: 1
    Last Post: 05-23-2008, 01:52 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