ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Another Userform question. (https://www.excelbanter.com/excel-discussion-misc-queries/97759-another-userform-question.html)

ingleg

Another Userform question.
 

I have a textbox on a userform in which the date is entered, in dd/mm/yy
format.

When it is shown in a cell in the spreadsheet, it shows as mm/dd/yy.

Is there anyway of getting it to appear in the cell as typed?

I have tried to change the formatting but this does not work.


--
ingleg
------------------------------------------------------------------------
ingleg's Profile: http://www.excelforum.com/member.php...o&userid=33037
View this thread: http://www.excelforum.com/showthread...hreadid=558819


Dave Peterson

Another Userform question.
 
When a user types 01/02/03, do they mean Jan 2, 2003 or Feb 1, 2003 or....

Entering dates in an ambiguous format can sometimes result in the wrong dates.

You may want to drop the textbox and use a calendar control:

Ron de Bruin has some tips/links at:
http://www.rondebruin.nl/calendar.htm


Or use three different controls (one for the month, day and year) to get the
date.

ingleg wrote:

I have a textbox on a userform in which the date is entered, in dd/mm/yy
format.

When it is shown in a cell in the spreadsheet, it shows as mm/dd/yy.

Is there anyway of getting it to appear in the cell as typed?

I have tried to change the formatting but this does not work.

--
ingleg
------------------------------------------------------------------------
ingleg's Profile: http://www.excelforum.com/member.php...o&userid=33037
View this thread: http://www.excelforum.com/showthread...hreadid=558819


--

Dave Peterson


All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com