+ Reply to Thread
Results 1 to 7 of 7

Calendar Functionality

  1. #1
    Registered User
    Join Date
    01-26-2005
    Posts
    15

    Calendar Functionality

    Good afternoon

    I am hoping someone can help me!

    I am trying to use Design control in Excel 2007 to create a spreadsheet which allows people to look at a calendar in the document, click on a date and that date is entered into the cell. Similar to when you do online when you, say, go to book a flight and you can select the date on the calendar.

    The document we are trying to create is for annual leave where people put their start and finish dates and it automatically calculates the number of days between. At the moment, people have to put the date in a formula format (eg =DATE(YYYY,MM,DD) rather than just typing in a date or else it won't calculate it for you!

    Can anyone help with suggestions?

    Thanks

    Graeme

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Try This

    Add a button next to the relevant cell(s) then add this code to th button

    Please Login or Register  to view this content.
    You will need to specify the range to select for each button (so if the button is over cell A2 you obviously want to write in A1 etc

    Hope that helps
    Attached Files Attached Files
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    More

    Here's a quick example file mate

    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-26-2005
    Posts
    15

    Thanks

    Thanks Macdave. Much appreciated.

    I was trying to see how you did it on your example but for some reason when i enter design mode it doesn't let me check the coding. I am probably doing something wrong but if you can suggest something that would be great!

    Thanks

    Graeme

  5. #5
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Wink

    to see the code for the calendar just click on it buddy. otherwise here it is:

    Please Login or Register  to view this content.
    The button just have this attached:

    Please Login or Register  to view this content.
    Hope that helps

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Hope that helps.

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

    Free DataBaseForm example

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Here's an example using a Calendar control
    Attached Files Attached Files

+ 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