Hi,
Try:
Dim d as date
d=DateValue( <date_string> )
--
Regards,
Sébastien
<http://www.ondemandanalysis.com>
"donbowyer" wrote:
> I want to subtract one date from another to obtain days between.
> The format of the dates is dd/mm/yy
> This works fine if both dates are <<numbers>>.
> However, one date comes from a UserForm TextBox and is <<Text>>.
> I have used successfully the "PasteMultiply" by 1 trick to convert text that
> looks like a NUMBER to a true number,
> BUT it doesn't seem to work with text that looks like a DATE.
> Help please
> --
> donwb
|