Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve1154
 
Posts: n/a
Default Forcing english date format


Hi
I use a form that pulls in a range of dates from excel. I need date to
be in 28/2/06 type format. Only trouble is every time I shut and reopen
the workbook the date comes in as 02/28/06.
To solve this I am currently having to go through control panel,
regional settings,customise,date,and highlighting the longdate format
dd:MM:yy (Which is already showing as active option)
How can I force excel to use this format automatically?

Nb the dates on the spreadsheet are already formatted to 28/02/06

This one has been causing me a headache for over 2 year now - I just
discovered this forum so really hope someone knows the answer
Cheers
Steve


--
Steve1154
------------------------------------------------------------------------
Steve1154's Profile: http://www.excelforum.com/member.php...o&userid=31550
View this thread: http://www.excelforum.com/showthread...hreadid=512663

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav
 
Posts: n/a
Default Forcing english date format


Have you tried setting a custom format of an English date dd/mm/yy, We
have the same problem, But sheets formated form the custom tab do
retain the same format when we reopen them. i guess its probably down
to network settngs tho

regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=512663

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve1154
 
Posts: n/a
Default Forcing english date format


I need something like
Sub UserForm_Initialize()
onopen longdate.format=dd/MM/yy

in the initialising sequence but I have tried this so many ways my
heads spinning

Steve


--
Steve1154
------------------------------------------------------------------------
Steve1154's Profile: http://www.excelforum.com/member.php...o&userid=31550
View this thread: http://www.excelforum.com/showthread...hreadid=512663

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Forcing english date format

Do you set your date in VBA? If so, try casting it, CDate(Date).

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Steve1154" wrote
in message ...

I need something like
Sub UserForm_Initialize()
onopen longdate.format=dd/MM/yy

in the initialising sequence but I have tried this so many ways my
heads spinning

Steve


--
Steve1154
------------------------------------------------------------------------
Steve1154's Profile:

http://www.excelforum.com/member.php...o&userid=31550
View this thread: http://www.excelforum.com/showthread...hreadid=512663



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve1154
 
Posts: n/a
Default Forcing english date format


Hi
Thanks for the idea, I've never heard of this befor. I just tried

Dim MyDate, MyShortDate
MyDate = "15 February, 2006"
MyShortDate = CDate(MyDate)

It accepts the code (thats good) but it has no effect

Steve


--
Steve1154
------------------------------------------------------------------------
Steve1154's Profile: http://www.excelforum.com/member.php...o&userid=31550
View this thread: http://www.excelforum.com/showthread...hreadid=512663



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve1154
 
Posts: n/a
Default Forcing english date format


This just gets rejected

Dim MyDate, MyLongDate
MyDate = "15 February, 2006"
MyLongDate = CDate(dd / MM / yy)

Steve


--
Steve1154
------------------------------------------------------------------------
Steve1154's Profile: http://www.excelforum.com/member.php...o&userid=31550
View this thread: http://www.excelforum.com/showthread...hreadid=512663

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 - US to English Eggtavius Excel Discussion (Misc queries) 6 January 30th 06 08:00 PM
Changing date format in a footer Gord Dibben Excel Discussion (Misc queries) 2 December 9th 05 06:36 PM
I cannot change the date format to English canada DStanfield Excel Discussion (Misc queries) 2 September 28th 05 06:23 PM
format date in excel Nigel Excel Discussion (Misc queries) 2 September 15th 05 09:52 PM
Compare dates (one cell not in date format) craigcsb Excel Discussion (Misc queries) 5 June 28th 05 05:07 PM


All times are GMT +1. The time now is 08:14 AM.

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

About Us

"It's about Microsoft Excel"