+ Reply to Thread
Results 1 to 3 of 3

Restrict Input Start and End Dates to One Quarter

  1. #1
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408

    Restrict Input Start and End Dates to One Quarter

    Hi all,

    I have the following code:

    Please Login or Register  to view this content.
    How do I restrict the input sDate and nDate to the beginning and end of Q1, Q2, Q3 or Q4?

    Thanks,
    Gos-C
    Using Excel 2010 & Windows 10
    "It is better to be prepared for an opportunity and not have one than to have an opportunity and not be prepared."

  2. #2
    Forum Contributor
    Join Date
    06-09-2011
    Location
    Germany
    MS-Off Ver
    Excel 2016
    Posts
    194

    Re: Restrict Input Start and End Dates to One Quarter

    Hi Gos-C,

    I have replaced the Input boxes by a userform, because I think this is more elegant. The part that determines if it is within the same quarter can be found in the code of the userform within the attached workbook.Quarter.xlsm.

    I am pretty sure you can reapply easily.


    Regards

    Theo

    P.S. Don't forget to close your thread if your issue is solved. Consider to thank those who helped you, by clicking on the star to the left of the helpers reply!

  3. #3
    Forum Contributor
    Join Date
    09-19-2004
    Location
    Canada
    Posts
    408

    Re: Restrict Input Start and End Dates to One Quarter

    Hi Theo,

    Thank you very much for your help.

    I am trying to force the user to enter only the beginning and end dates for the quarter. For example, 1/1/12 and 31/3/12 for the Start Date and the End Date, respectively, for Q1 of 2012. However, you are allowing any date in the quarter.

    Gos-C

+ 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