Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform date format problem

Hi,

I am having a problem with the date formatting in a user form text box
in excel 2000.

For example:

If in the text box you type: 03/12/04 for the 3rd december 04

The following code writes the date back to the active cell
ActiveCell.Value = Format(Me.txtDate.Value, "dd/mm/yy")

However this writes 12/03/04 onto the worksheet.

How do I get it to recognise that 03 is the day and 12 the month?

Thanks
Jenni

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Userform date format problem

Hi jennie .

I suggest to use a calandar control
http://www.rondebruin.nl/calendar.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jennie " wrote in message ...
Hi,

I am having a problem with the date formatting in a user form text box,
in excel 2000.

For example:

If in the text box you type: 03/12/04 for the 3rd december 04

The following code writes the date back to the active cell
ActiveCell.Value = Format(Me.txtDate.Value, "dd/mm/yy")

However this writes 12/03/04 onto the worksheet.

How do I get it to recognise that 03 is the day and 12 the month?

Thanks
Jennie


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userform date format problem

Thanks for the info, I will give it a go

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Format for Userform TextBox John Calder New Users to Excel 4 July 29th 09 10:19 PM
Format problem in displayed userform Anthony Excel Worksheet Functions 8 June 30th 08 02:52 PM
Need A date Mask format for a Textbox on UserForm [email protected] Excel Discussion (Misc queries) 2 November 4th 07 02:27 AM
Restrict date format for UserForm Rob Excel Discussion (Misc queries) 2 December 19th 05 12:13 AM
Userform Textbox - Date Problem universal[_6_] Excel Programming 2 November 26th 03 04:31 PM


All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"