Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Date format in Excel

hi all,

date in the excel have some problems when i wtire 14/01/2007 it
chenges sutomatically to "01/14/07. i did change it from the
Formatcell and from Control pannel regioanl sitting, but the problem
still exists.

thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Date format in Excel

Hi Abid

you could try using cdate i.e.

Private Sub CommandButton1_Click()
mydate=textbox1.value ' add 01/03/2007 to the textbox then press the
button
[A1].Value = CDate(mydate)
End Sub

for more information on cdate search excel help or this newsgroup...
the mighty tom ogilvy has a wealth of posts explaining this

hope it helps

S

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
Excel 2007 format cells to date format Stefan Excel Discussion (Misc queries) 0 June 1st 10 09:06 PM
Excel Format Problem - Date Overrides Format Mary Excel Discussion (Misc queries) 5 February 10th 10 05:49 AM
Format an Excel Column in the window's short date format. jim kane Excel Programming 7 January 25th 07 02:41 AM
How can I convert a date format to an ISO week format (in EXCEL)? ELI Excel Discussion (Misc queries) 2 July 6th 05 06:31 PM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


All times are GMT +1. The time now is 06:53 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"