+ Reply to Thread
Results 1 to 7 of 7

Restrict Entry into excel for dates more than 2 weeks in future

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    33

    Restrict Entry into excel for dates more than 2 weeks in future

    I am preparing a leave calendar for my team. The structure of the excel file is as follows:
    1. Column A: Names of team members
    2. Cell B1: 1st Jan
    3. Cell C1: 2nd Jan
    ...
    Continues till end of the year... one cell for each day of year.

    Each member is expected to highlight the cells in rows corresponding to their names for leaves planned.

    Example: If member "yyy" wants to take leave on 4/5/6 Jan, he will mark the cells as shown below.

    My requirement is as follows.
    Based on current date, if a member tries to update a cell for a date more than 2 weeks in future, it should give a popup about the restriction of doing so.

    Example: Today is 3rd May. If any member applies for a leave for any date beyond 17th May, a pop should be given.

    I hope someone can help me out in this.


    Name 2016-01-01 2016-01-02 2016-01-03 2016-01-04 2016-01-05 2016-01-06 2016-01-07 2016-01-08 2016-01-09
    xxx
    yyy Leave Leave Leave
    zzz
    aaa

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,878

    Re: Restrict Entry into excel for dates more than 2 weeks in future

    Hi, See the file attached.

    Try inputting Leave after 17th May and it wont let you. If you try this tomorrow, it will not allow you a Leave entry after 18th May
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    06-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Restrict Entry into excel for dates more than 2 weeks in future

    Its working fine. Thanks.

    However, I am unable to see the macro that you may have added. When I do ALT-F11, nothing is visible. :-(

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,878

    Re: Restrict Entry into excel for dates more than 2 weeks in future

    Hi,

    It isnt a Macro.. It is data validation.

    Go on any cell in the range and type Alt > D > L

  5. #5
    Registered User
    Join Date
    06-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Restrict Entry into excel for dates more than 2 weeks in future

    Got it... Thanks a lot.

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,878

    Re: Restrict Entry into excel for dates more than 2 weeks in future

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    06-18-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Restrict Entry into excel for dates more than 2 weeks in future

    Ok. I have marked the thread as SOLVED.

+ 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. [SOLVED] Use Conditional Formatting to Hide Future Weeks
    By jimboryan in forum Excel General
    Replies: 3
    Last Post: 10-30-2015, 10:51 AM
  2. Replies: 4
    Last Post: 10-22-2014, 10:16 AM
  3. Hide Future Rows Containing Future Dates.
    By Raj_121 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2013, 07:14 AM
  4. Replies: 2
    Last Post: 03-12-2013, 03:27 AM
  5. difference between two dates in working weeks(5 day weeks)
    By AWilderbeast in forum Excel General
    Replies: 3
    Last Post: 08-31-2010, 09:21 AM

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