+ Reply to Thread
Results 1 to 7 of 7

Two different calendar pop-ups on same worksheet?

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    Roseville, CA
    MS-Off Ver
    Excel 2002
    Posts
    4

    Two different calendar pop-ups on same worksheet?

    I'm less than a novice at VB code, really! (Maybe I'm too ambitious for my own good). I'm trying to have two buttons on a worksheet that will each bring up the calendar pop-up. But each button will enter the calendar date in a different cell than the other button. I always seem to get stuck with it only entering the date in one or the other because I don't know how to create a second Calendar.frm file to link the second text cell to. I've able to create two different modules but get stuck trying to get the dates to go to two different cells. I don't necessarily need to use the buttons; they could simply click on the specific cells to open the calendars. Please help.
    Last edited by speterson; 12-07-2010 at 08:09 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Two different calendar pop-ups on same worksheet?

    Hello speterson,

    Welcome to the Forum!

    You should post your workbook. Seeing the layout, formatting, formulae, and any VBA code, will guarantee a working solution. A lot of time will also be saved by eliminating guesswork.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-06-2010
    Location
    Roseville, CA
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Two different calendar pop-ups on same worksheet?

    As you can see, I've got one of them working. When I click on the "button" in Q9, it brings up the calendar and enters the data in O9. But I haven't been able to figure out how to get it to enter the other date in S9 when I click on U9.
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Two different calendar pop-ups on same worksheet?

    Hi speterson

    Try this
    Please Login or Register  to view this content.
    You need to assign the Calendar Macro to both buttons.

    You've got merged cells going on there. Most of the experts on this Forum will suggest you avoid that.
    John
    Last edited by jaslake; 12-07-2010 at 06:13 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Registered User
    Join Date
    12-06-2010
    Location
    Roseville, CA
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Two different calendar pop-ups on same worksheet?

    Thanks! I'll give it a try!

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Two different calendar pop-ups on same worksheet?

    Hi speterson

    Were it me, I'd probably create a second calendar. See attached.

    John
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-06-2010
    Location
    Roseville, CA
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Two different calendar pop-ups on same worksheet?

    Thank You, John! This is exactly what I was looking for. I'm going to go over the code with a microscope and figure out what you did. I know using merged cells doesn't make it easy, but the boss designs the forms, I have to make them work. You've made my day!

    Thanks Again!

    Speterson

+ 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