View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Date format in VBA

You may want to consider using a calendar control. It'll remove any ambiguity
from what the user enters.

Did the user mean Jan 2, 2003 or Mar 1, 2002 when he or she typed 01/02/03 in
the text box.

See Ron de Bruin's site:
http://www.rondebruin.nl/calendar.htm

Wanna Learn wrote:

Hello I'm creating a user form in VBA. the Label is "Date received" and
this is what I have.
Me.txtDate = Format(Date, "mmm-dd-yy")
problem is that this shows the current date. What I want is for the person
to enter the date but no mattter how the date is entered to be formatted as
mmm-dd-yy thanks


--

Dave Peterson