PC Review


Reply
Thread Tools Rate Thread

Date format wrong when using shortcut key

 
 
D Brian
Guest
Posts: n/a
 
      11th Feb 2010
I use Word 2007. I set the default date format by clicking Date & Time in the
Text section under the Insert tab on the ribbon. I choose the format I want
and click Default. I make sure the “Update automatically” box is not checked.
Then I click OK. The date is inserted in the format I chose and it does not
automatically update. Everything works fine up to this point. My problem
comes when I then try to insert the date using the keyboard shortcut
Alt+Shift+D. According to several Word 2007 discussion groups, when
Alt+Shift+D is used the date should be inserted with the default format, but
that doesn’t happen when I do it. Another format is inserted. Also, the date
automatically updates even though the update box was not checked in the Date
and Time dialog box. I found a solution to the update problem but it is a
little cumbersome – Immediately after I insert the date with Alt+Shift+D, I
use the left arrow key to back up into the date field, then I do
Ctrl+Shift+F9. This unlinks the field from the automatic update process. But
I have not found a solution to the format problem. Ideally, I would like to
use one keyboard shortcut to insert a date that is not updated, in the format
I choose. Is it possible to do this? Do I need to create a macro? Any
suggestions would be helpful.
 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      11th Feb 2010

If the function is not working correctly, and it doesn't appear to be as
unchecking the automatically update box should cause the date to be entered
as plain text, it may be an indication of corruption in the Word data key in
the registry. Rename the Data key at
\HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word to OldData and try
again.

If that doesn't fix it, create a macro to insert the date in the format that
you require eg

Sub InsertUSFormatDate()
With Selection
.InsertDateTime DateTimeFormat:="MMMM" & Chr(160) & _
"d," & Chr(160) & "yyyy", InsertAsField:=False
End With
End Sub

and assign the shortcut to that macro
http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



"D Brian" <D (E-Mail Removed)> wrote in message
news:A44A3F3E-E828-4B51-9FCC-(E-Mail Removed)...
>I use Word 2007. I set the default date format by clicking Date & Time in
>the
> Text section under the Insert tab on the ribbon. I choose the format I
> want
> and click Default. I make sure the "Update automatically" box is not
> checked.
> Then I click OK. The date is inserted in the format I chose and it does
> not
> automatically update. Everything works fine up to this point. My problem
> comes when I then try to insert the date using the keyboard shortcut
> Alt+Shift+D. According to several Word 2007 discussion groups, when
> Alt+Shift+D is used the date should be inserted with the default format,
> but
> that doesn't happen when I do it. Another format is inserted. Also, the
> date
> automatically updates even though the update box was not checked in the
> Date
> and Time dialog box. I found a solution to the update problem but it is a
> little cumbersome - Immediately after I insert the date with Alt+Shift+D,
> I
> use the left arrow key to back up into the date field, then I do
> Ctrl+Shift+F9. This unlinks the field from the automatic update process.
> But
> I have not found a solution to the format problem. Ideally, I would like
> to
> use one keyboard shortcut to insert a date that is not updated, in the
> format
> I choose. Is it possible to do this? Do I need to create a macro? Any
> suggestions would be helpful.



 
Reply With Quote
 
Terry Farrell
Guest
Posts: n/a
 
      11th Feb 2010
I always thought that alt+shft+D inserted the date in the short date format
defined in Regional settings in the Control panel.

--
Terry Farrell - MSWord MVP

"D Brian" <D (E-Mail Removed)> wrote in message
news:A44A3F3E-E828-4B51-9FCC-(E-Mail Removed)...
> I use Word 2007. I set the default date format by clicking Date & Time in
> the
> Text section under the Insert tab on the ribbon. I choose the format I
> want
> and click Default. I make sure the “Update automatically” box is not
> checked.
> Then I click OK. The date is inserted in the format I chose and it does
> not
> automatically update. Everything works fine up to this point. My problem
> comes when I then try to insert the date using the keyboard shortcut
> Alt+Shift+D. According to several Word 2007 discussion groups, when
> Alt+Shift+D is used the date should be inserted with the default format,
> but
> that doesn’t happen when I do it. Another format is inserted. Also, the
> date
> automatically updates even though the update box was not checked in the
> Date
> and Time dialog box. I found a solution to the update problem but it is a
> little cumbersome – Immediately after I insert the date with Alt+Shift+D,
> I
> use the left arrow key to back up into the date field, then I do
> Ctrl+Shift+F9. This unlinks the field from the automatic update process.
> But
> I have not found a solution to the format problem. Ideally, I would like
> to
> use one keyboard shortcut to insert a date that is not updated, in the
> format
> I choose. Is it possible to do this? Do I need to create a macro? Any
> suggestions would be helpful.


 
Reply With Quote
 
Graham Mayor
Guest
Posts: n/a
 
      11th Feb 2010
I believe it does, but the function should still correctly interpret the
'automatically update' setting in the dialog.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


"Terry Farrell" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I always thought that alt+shft+D inserted the date in the short date format
>defined in Regional settings in the Control panel.
>
> --
> Terry Farrell - MSWord MVP
>
> "D Brian" <D (E-Mail Removed)> wrote in message
> news:A44A3F3E-E828-4B51-9FCC-(E-Mail Removed)...
>> I use Word 2007. I set the default date format by clicking Date & Time in
>> the
>> Text section under the Insert tab on the ribbon. I choose the format I
>> want
>> and click Default. I make sure the "Update automatically" box is not
>> checked.
>> Then I click OK. The date is inserted in the format I chose and it does
>> not
>> automatically update. Everything works fine up to this point. My problem
>> comes when I then try to insert the date using the keyboard shortcut
>> Alt+Shift+D. According to several Word 2007 discussion groups, when
>> Alt+Shift+D is used the date should be inserted with the default format,
>> but
>> that doesn't happen when I do it. Another format is inserted. Also, the
>> date
>> automatically updates even though the update box was not checked in the
>> Date
>> and Time dialog box. I found a solution to the update problem but it is a
>> little cumbersome - Immediately after I insert the date with Alt+Shift+D,
>> I
>> use the left arrow key to back up into the date field, then I do
>> Ctrl+Shift+F9. This unlinks the field from the automatic update process.
>> But
>> I have not found a solution to the format problem. Ideally, I would like
>> to
>> use one keyboard shortcut to insert a date that is not updated, in the
>> format
>> I choose. Is it possible to do this? Do I need to create a macro? Any
>> suggestions would be helpful.

>



 
Reply With Quote
 
Suzanne S. Barnhill
Guest
Posts: n/a
 
      11th Feb 2010
Alt+Shift+D is the keyboard shortcut for inserting a DATE field. It does use
the default date format, but it is always a field, irrespective of the
"automatically update" setting in Insert | Date and Time. The same is true
of the Insert Date button on the Header and Footer toolbar in Word 2003 and
earlier. If you want date text, you can either type it or insert the DATE
field and then immediately unlink it with Ctrl+Shift+F9 (as you've been
doing).

If Alt+Shift+D is not using the right format, then perhaps your default
choice is not being saved; I'm not sure whether this setting is stored in
the Normal template or (more likely) the Registry, but if you don't have
write permission to the Registry, or if Normal.dotm is not being saved,
then that could be the explanation for the format difference.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"D Brian" <D (E-Mail Removed)> wrote in message
news:A44A3F3E-E828-4B51-9FCC-(E-Mail Removed)...
>I use Word 2007. I set the default date format by clicking Date & Time in
>the
> Text section under the Insert tab on the ribbon. I choose the format I
> want
> and click Default. I make sure the “Update automatically” box is not
> checked.
> Then I click OK. The date is inserted in the format I chose and it does
> not
> automatically update. Everything works fine up to this point. My problem
> comes when I then try to insert the date using the keyboard shortcut
> Alt+Shift+D. According to several Word 2007 discussion groups, when
> Alt+Shift+D is used the date should be inserted with the default format,
> but
> that doesn’t happen when I do it. Another format is inserted. Also, the
> date
> automatically updates even though the update box was not checked in the
> Date
> and Time dialog box. I found a solution to the update problem but it is a
> little cumbersome – Immediately after I insert the date with Alt+Shift+D,
> I
> use the left arrow key to back up into the date field, then I do
> Ctrl+Shift+F9. This unlinks the field from the automatic update process.
> But
> I have not found a solution to the format problem. Ideally, I would like
> to
> use one keyboard shortcut to insert a date that is not updated, in the
> format
> I choose. Is it possible to do this? Do I need to create a macro? Any
> suggestions would be helpful.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
from date format convert to text format is wrong nooris Microsoft Excel Misc 2 4th Feb 2010 03:41 PM
Application.ExportXML exports dates in the wrong format or the 1899 date if date field is empty Jennifer Robertson Microsoft Access VBA Modules 4 2nd Apr 2009 02:57 AM
Shortcut Key Date Format Daniel L. Lieberman Microsoft Excel Worksheet Functions 2 11th Jun 2008 11:16 AM
Strange? VBA code returns wrong date format (not a date) =?Utf-8?B?enp4eGNj?= Microsoft Excel Programming 8 12th Oct 2007 09:13 AM
date shortcut format MonniqueA Microsoft Access Database Table Design 2 26th Jul 2004 11:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 PM.