date validation

J

Jo

Hi
I wish to take the results of several boxes on a userform
and create a date and then validate it.
=B5&"/"&B6&"/"&B4
is
1/1/2003
however I cannot format this into a date
How do I make this recognised as a date?
Thanks a lot
Jo
 
S

steve

Jo,

Use the worksheet function:
=DATE(year,month,day)
but year must be 4 digits

steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top