Dim startdate As Variant
Do
InputBox ("STARTDATE")
If Len(startdate) = 0 Then Exit Sub
Loop Until IsDate(startdate)
startdate = CDate(startdate)
MsgBox startdate
this is not storing a date, I have changed variant to date format, but nothing is being stored