Ha said:
I am trying to convert a date into a serial number.
I used DateValue(3/13/1997) in the textbox. I am getting
#Name? error
The DateValue function expects either a string or a date
e.g.
DateValue("3/13/1997")
or
DateValue(#3/13/1997#)
What you wrote is the date value of 3 divided by 13 divided
by 1997 which would end up as 12/40/1899. But that won't
explain a #Name? error, so either you didn't post what
you're really using, the error is coming from something
else, or you have a referencing problem that made the
DateValue function unavailable.