Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Jodon Brown   on Sep 19 In MS Office Category.

  
Question Answered By: Bathilda Schmidt   on Sep 19

One option would be to use

Dim startdt

Instead of Dim startdt As Date

This dims the variable as a variant. There will be no mismatch.

Then you need to do your validation of the text string

Then, when you are sure it is a valid date  you need to convert it to a date
value using

startdt=datevalue(startdt)

Share: 

 
 
Didn't find what you were looking for? Find more on Checking the input date value in inputbox Or get search suggestion and latest updates.


Tagged: