+ Reply to Thread
Results 1 to 7 of 7

Connecting date selected on a calendar to a specific cell

  1. #1
    Registered User
    Join Date
    08-11-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/ 2010
    Posts
    72

    Connecting date selected on a calendar to a specific cell

    I have designed a calendar GUI in my macro. When someone selects a specific date on said calendar, I want that date to fall into a specific column. I can do this with other user input boxes, but I can't figure out how to do it with the calendar option.

    Please help!

    -Jared
    Last edited by jpcsolutions; 08-13-2011 at 05:13 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: Connecting date selected on a calendar to a specific cell

    Hello jared,

    It is difficult to offer workable solutions when you have written the code using vaporware. Please post your workbook with before and after examples of how the data should be arranged and any comments needed to explain what you want.
    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
    08-11-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/ 2010
    Posts
    72

    Re: Connecting date selected on a calendar to a specific cell

    Hi Leith,

    I don't have any code for it. I simply used the Calendar Control 12.0 and generated the calendar in the GUI. So, for example, if I click on August 13, and then my "Submit" button, I want that specific date to populate into a certain cell.

    I'm not sure what vaporware is either. I'm fairly new to Excel.

    Thanks,

    Jared

  4. #4
    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: Connecting date selected on a calendar to a specific cell

    Hello Jared,

    Thanks for filling in some of the key details like the which Calendar control you are using. By the way, vaporware is a software industry term used to describe software that has not been written yet. It only exists in the theory.

  5. #5
    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: Connecting date selected on a calendar to a specific cell

    Hello ,

    Here is an example of how to transfer the Calendar selection to cell A1 on the ActiveSheet. You may need to change the name of the command button and the range to match what you are using.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-11-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007/ 2010
    Posts
    72

    Re: Connecting date selected on a calendar to a specific cell

    Okay. I adjusted the code accordingly. However, the date only populates to one specific cell. So, I made some additional adjustments with some code to do a search into the last USED cell of a particular column. Then I applied the new values to the next OPEN row.

    See below...

    Please Login or Register  to view this content.
    Thank you very much for your help, Leith. You pointed me in the right direction.

    -Jared

  7. #7
    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: Connecting date selected on a calendar to a specific cell

    Hello Jared,

    Glad I could help.

+ 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