Hi.
Here is my problem.
My o.s. is windows '98.
In vba for excel 2000 I've a form with a textbox in which users have to insert dates.
I've formatted that textbox dd/mm/yyyy, in order to avoid problems with some years (i.e. with a "Short date" format, /45 is considered 1945 and not 2045...and so on).
The result is correct. All the years are correctly recognized.
The problem is that although the format I built for the textbox (in initialize and in exit events), when I exit the textbox after wtiting i.e. 10/10/2004, format becomes again "Short date" (i.e. 10/10/04).
This happens only if the year is before 2030.
i.e . If I write 10/10/2029, it becomes 10/10/29.
On the contrary, if I write 10/10/2030, it remains 10/10/2030.
How can I get the date format to remain as I programmed it (/yyyy)?
Thank you in advance for your suggestions.
Regards.
Nick.
Here is my problem.
My o.s. is windows '98.
In vba for excel 2000 I've a form with a textbox in which users have to insert dates.
I've formatted that textbox dd/mm/yyyy, in order to avoid problems with some years (i.e. with a "Short date" format, /45 is considered 1945 and not 2045...and so on).
The result is correct. All the years are correctly recognized.
The problem is that although the format I built for the textbox (in initialize and in exit events), when I exit the textbox after wtiting i.e. 10/10/2004, format becomes again "Short date" (i.e. 10/10/04).
This happens only if the year is before 2030.
i.e . If I write 10/10/2029, it becomes 10/10/29.
On the contrary, if I write 10/10/2030, it remains 10/10/2030.
How can I get the date format to remain as I programmed it (/yyyy)?
Thank you in advance for your suggestions.
Regards.
Nick.