+ Reply to Thread
Results 1 to 4 of 4

Date picker - must not be more that 6 yrs from today

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    13

    Question Date picker - must not be more that 6 yrs from today

    I am attempting to provide a training module for work relating to Motor Claims.

    The end user must select an incident date. There is a check in place to ensure it is not in the future but I cannot seem to find a way to restrict the user from entering a date less than 6 years from today's date. E.g. if incident date selected from the calender is more than 6 years ago from today then msgbox (cannot claim if occurred more than 6 years ago) and return to calendar to select a date.

    Currently I have the following which works to ensure date is not on the future.

    Please Login or Register  to view this content.
    Dateadd does note seem to work with the calendar. Any ideas?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Date picker - must not be more that 6 yrs from today

    Try this:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-26-2014
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Date picker - must not be more that 6 yrs from today

    Thank you, worked a treat!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Date picker - must not be more that 6 yrs from today

    You're welcome, and thanks for the rep!

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this 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. Replies: 10
    Last Post: 09-06-2023, 08:19 PM
  2. Replies: 7
    Last Post: 12-08-2013, 06:11 PM
  3. Replies: 6
    Last Post: 08-08-2011, 08:32 AM
  4. Date Picker won't select current date: Userform
    By valkok in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2011, 06:09 PM
  5. Date Picker Control will not display Current Date
    By SP Brian in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-04-2011, 01:33 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