Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error Check Dates
I have a user form that I would like people to enter dates, I woudl
like to check to make sure that they are indeed dates. What is the error checking for this? Could someone help with this? Thanks, Jay |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error Check Dates
IF ISDATE(me.Textbox1.Text) then...
but you may want to further check years, because you MIGHT have a year of 3081, so maybe IF Isdate(me.textbox1.Text) then IF Year(me.textbox1.text)2100 then 'arbitrary year here MsgBox "Invalid Date" etc. "jlclyde" wrote: I have a user form that I would like people to enter dates, I woudl like to check to make sure that they are indeed dates. What is the error checking for this? Could someone help with this? Thanks, Jay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If statement error check | Excel Worksheet Functions | |||
macro custom error check | Excel Discussion (Misc queries) | |||
How can I check whether a column of dates are all before today's d | Excel Worksheet Functions | |||
How can I check whether a column of dates are all before today's d | Excel Worksheet Functions | |||
Error Msg 400 - Macro Spell Check | Excel Discussion (Misc queries) |