Dim uiValue As String
Do
uiValue = Application.InputBox("enter a date", Type:=2)
If uiValue = "False" Then Exit Sub: Rem canceled
If IsDate(uiValue) Then
uiValue = Format(DateValue(uiValue), "mm/dd/yyyy")
Else
uiValue = vbNullString
MsgBox "you must enter a date"
End If
Loop While uiValue = vbNullString
MsgBox "user entered " & uiValue