I keep a diary in MS Word & want to do date automatically.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I keep a daily diary and find it time consuming to write the date. So far I
have written dates for the whole month ahead but it takes a lot of time.
Also I have an automatic date feature set but I don't like the format. All
attempts to change it to the format I like have failed. I have tried under
insert, date and time. The format I like is available in my MS Word version
so that is not the problem.
 
What format would you like? the format is set with a formatting switch.
However for a running diary you could insert the date with a simple macro
attached to a keyboard shortcut or toolbar button
http://www.gmayor.com/installing_macro.htm

eg

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

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

If you would prefer some other layout it is not difficult to change it. For
superscripted ordinals the code gets a bit more complicated - see the
relevant section at http://www.gmayor.com/formatting_word_fields.htm

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top