ok so ive been using VBA excel for college work and we need to add a date picker tool to select a date however we need to validate it so that they cant select past dates this is what ive tried but its came up error can anyone help?
If DTPicker1 = < date then
MsgBox "You can not select a past date"
ValidateInput = false
Exit function
End if
please help me out here i really donno what im doing wrong
If DTPicker1 = < date then
MsgBox "You can not select a past date"
ValidateInput = false
Exit function
End if
please help me out here i really donno what im doing wrong