• 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.

Clubbing Date picker and Date Validation

vinaykulkarni

New Member
Hello, I want to use Date Picker falong with Date Validation feature. Currently Date validation does not work if i insert date using Date Picker.
Can you help please?
 

Attachments

  • Sample File.xlsm
    22 KB · Views: 8
Validation only works on data entered from the user interface whereas you are entering data from VBA. You cannot prevent inappropriate dates from being entered but you can test them with a formula and flag them as errors.

Alternatively, since entering a date from VBA will trigger a worksheet change event, you could test the date and clear any erroneous values using code.
 
Back
Top