Need a Word shortcut for inserting a plain, non-updateable date.

  • Thread starter Glenn J, Houston Texas
  • Start date
G

Glenn J, Houston Texas

When I hit Shft+Alt+D, I get a Date Field in my document.
This field updates whenever I open the document or when I try to print.
It is impossible to enter a future date and print; the date changes.
My Word 2007 USED to put in a plain, non-updateable date when I press
Shrt+Alt+D.
How do I get it to do that?
 
G

Graham Mayor

While Herb's macro will certainly do the job, you don't have to insert a
field then convert it to text in order to insert the date it contains. You
could simply insert the date directly eg

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

OR

To ensure that dates don't break across lines include non-breaking spaces
thus:

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

OR

You could reassign the shortcut to the InsertDateTime built-in command,
though this will pop up the dialog.

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top