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


HI All

I have the following code that enters the date when a cell is filled.

IT works perfectly thx to this forums help - thx all.

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("D11:D100")) Is Nothing Then
With Target
..Offset(0, -1).Value = Format(Time, "hh:mm:ss")
..Offset(0, -2).Value = Format(Date, "dd/mm/yyyy")
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub


My problem is since it changed to June yesterday the date is displaying
in US date format.

I have the cells formated as d/mm/yyyy on the worksheet but is still is
displaying todays date as 06/3/2005 how can I force it to display
British / Australian format
3/06/2005.

look forward to your reply


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile: http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=376155

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Date Format Issue


Sorry Guys I have posted this twice in error :

--
Mikeic
-----------------------------------------------------------------------
Mikeice's Profile: http://www.excelforum.com/member.php...fo&userid=2246
View this thread: http://www.excelforum.com/showthread.php?threadid=37615

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 issue Arjen Excel Discussion (Misc queries) 3 August 22nd 06 02:04 PM
Date format issue LadyDoe Excel Worksheet Functions 1 November 17th 05 07:54 AM
Date Format Issue Mikeice[_8_] Excel Programming 2 June 3rd 05 04:37 AM
Date Format Issue alexm999[_82_] Excel Programming 1 June 1st 04 03:08 PM
Date format issue Meme Excel Programming 4 April 6th 04 09:19 PM


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