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

Hello group,

Ctrl ; inserts the current date into a cell
It is always formatted as the first choice
for dates viz. *14-03-01

Can I change the default format to 14-Mar-01 whenever
I use Ctrl ;

Thanks,

Michael Singmin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Format the Default Date

I suspect it uses the short date format. This can be redefined for windows
in the regional settings in the control panel.

--
Regards,
Tom Ogilvy

"Michael Singmin" wrote in message
...
Hello group,

Ctrl ; inserts the current date into a cell
It is always formatted as the first choice
for dates viz. *14-03-01

Can I change the default format to 14-Mar-01 whenever
I use Ctrl ;

Thanks,

Michael Singmin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Format the Default Date

Tom/Michael

I can't get the short date format to return 14-Mar-05 in Excel by changing
regional options in WindowsXP SP2.

So, I assigned this macro to CTRL + d

Sub NOWDATE()
With ActiveCell
.Value = Format(Date, "dd-mmm-yy")
.Columns.AutoFit
End With
End Sub


Gord Dibben Excel MVP

On Tue, 10 May 2005 14:49:28 -0400, "Tom Ogilvy" wrote:

I suspect it uses the short date format. This can be redefined for windows
in the regional settings in the control panel.

--
Regards,
Tom Ogilvy

"Michael Singmin" wrote in message
.. .
Hello group,

Ctrl ; inserts the current date into a cell
It is always formatted as the first choice
for dates viz. *14-03-01

Can I change the default format to 14-Mar-01 whenever
I use Ctrl ;

Thanks,

Michael Singmin


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Format the Default Date

After changing it, I had to close excel and reopen it, but it did change how
thinks worked.

From the immediate window:

? ActiveCell.Value
38482
? Format(activecell,"Short Date")
10-May-05

However, it didn't do what the OP wanted. When I did the shortcut key
combination, it entered it dd-mm-yy

So I don't think there is a way to change the default unless you want to
change the Normal style for number to be d-mmm-yy which did work, but then
every number was interpreted as a date.

--
Regards,
Tom Ogilvy




"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Tom/Michael

I can't get the short date format to return 14-Mar-05 in Excel by changing
regional options in WindowsXP SP2.

So, I assigned this macro to CTRL + d

Sub NOWDATE()
With ActiveCell
.Value = Format(Date, "dd-mmm-yy")
.Columns.AutoFit
End With
End Sub


Gord Dibben Excel MVP

On Tue, 10 May 2005 14:49:28 -0400, "Tom Ogilvy" wrote:

I suspect it uses the short date format. This can be redefined for

windows
in the regional settings in the control panel.

--
Regards,
Tom Ogilvy

"Michael Singmin" wrote in message
.. .
Hello group,

Ctrl ; inserts the current date into a cell
It is always formatted as the first choice
for dates viz. *14-03-01

Can I change the default format to 14-Mar-01 whenever
I use Ctrl ;

Thanks,

Michael Singmin




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Format the Default Date

All that said,
I assumed preformatting the cells where you will do this is not possible.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
After changing it, I had to close excel and reopen it, but it did change

how
thinks worked.

From the immediate window:

? ActiveCell.Value
38482
? Format(activecell,"Short Date")
10-May-05

However, it didn't do what the OP wanted. When I did the shortcut key
combination, it entered it dd-mm-yy

So I don't think there is a way to change the default unless you want to
change the Normal style for number to be d-mmm-yy which did work, but then
every number was interpreted as a date.

--
Regards,
Tom Ogilvy




"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Tom/Michael

I can't get the short date format to return 14-Mar-05 in Excel by

changing
regional options in WindowsXP SP2.

So, I assigned this macro to CTRL + d

Sub NOWDATE()
With ActiveCell
.Value = Format(Date, "dd-mmm-yy")
.Columns.AutoFit
End With
End Sub


Gord Dibben Excel MVP

On Tue, 10 May 2005 14:49:28 -0400, "Tom Ogilvy"

wrote:

I suspect it uses the short date format. This can be redefined for

windows
in the regional settings in the control panel.

--
Regards,
Tom Ogilvy

"Michael Singmin" wrote in message
.. .
Hello group,

Ctrl ; inserts the current date into a cell
It is always formatted as the first choice
for dates viz. *14-03-01

Can I change the default format to 14-Mar-01 whenever
I use Ctrl ;

Thanks,

Michael Singmin








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Format the Default Date

Thanks Tom,

I checked Regional Settings and the short date was okay.
I decided to make my own macro for the date setting.

Cheers,

Michael


"Tom Ogilvy" wrote:

I suspect it uses the short date format. This can be redefined for windows
in the regional settings in the control panel.


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
Default date format Kevin Setting up and Configuration of Excel 1 October 6th 09 07:18 PM
default date format Kruppy Setting up and Configuration of Excel 5 November 24th 07 08:52 PM
Default date format Mari Excel Discussion (Misc queries) 2 August 21st 06 11:49 PM
Default Date Format shep Setting up and Configuration of Excel 1 November 15th 05 06:09 PM
Excel Default date for date format smurphy123 Excel Discussion (Misc queries) 3 January 23rd 05 09:39 PM


All times are GMT +1. The time now is 12:30 PM.

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"