A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Format



 
 
Thread Tools Display Modes
  #1  
Old October 10th, 2006, 03:39 PM posted to microsoft.public.excel.setup
Loris
external usenet poster
 
Posts: 91
Default Date Format

In Excel 2003, when I try formatting a number as a date using the CTRL-SHFT-#
shortcut, it displays as dd-mmm-yy, e.g., 10-Oct-06. I thought it might be
controled by the short date format in Regional settiongs in Control Panel,
but that shows as mm/dd/yyyy. Does anyone have any idea what is controling
the format used by CTRL-SHFT-# and where I can go to change it?
  #2  
Old October 10th, 2006, 05:46 PM posted to microsoft.public.excel.setup
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Date Format

I'm not sure you can change it.

But you can intercept that keystroke and do what you want.

You could add a couple of routines to your personal.xls (or any workbook that
opens when excel starts):

Option Explicit
Sub myDateFormat()
Selection.NumberFormat = "mm/dd/yyyy"
End Sub
Sub auto_close()
Application.OnKey "^#"
End Sub
Sub auto_open()
Application.OnKey "^#", "myDateFormat"
End Sub


If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Loris wrote:

In Excel 2003, when I try formatting a number as a date using the CTRL-SHFT-#
shortcut, it displays as dd-mmm-yy, e.g., 10-Oct-06. I thought it might be
controled by the short date format in Regional settiongs in Control Panel,
but that shows as mm/dd/yyyy. Does anyone have any idea what is controling
the format used by CTRL-SHFT-# and where I can go to change it?


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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