• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA Code Required (Date Entry Restriction)

abid.aries

New Member
Dear Valued Experts,

I am in search of a vba code that can restrict date entry in my excel sheet.

Restrict date entry means user can not enter a date which is more than 4 days old.

Thanks in advance.
 
Hi:

You can use data validation to you achieve this

Step1:
Give a formula in a cell= Today()-4
Step 2:
Use the following setting in data validation(here I have given the formula in Cell A1)
upload_2019-1-8_15-50-29.png

Step 3:
Apply this validation to whichever cell you this rule to apply.

Thanks
 
Back
Top