Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / October 2006

Tip: Looking for answers? Try searching our database.

Date Format

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Loris - 10 Oct 2006 15:39 GMT
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 - 10 Oct 2006 17:46 GMT
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

> 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?

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.