Inserting an automatic date and time macro

  • Thread starter Thread starter Dale Jakins
  • Start date Start date
D

Dale Jakins

Is there a Macro that I can insert into Word 2007 that would allow me to keep
a journal for instance....I could click Ctrl + D and then it would insert the
current date and time? Does anyone know how to program that?? I've done
this in word before and can't remember how to program it.

Any help would be so greatly appreciated!!!
 
You could assign something like the following to a keyboard shortcut:

Sub DateStamp()
With Selection
.InsertAfter "Captain's Log stardate "
.Collapse wdCollapseEnd
.InsertDateTime DateTimeFormat:="MMMM dd, yyyy HH:MM:SS: ",
InsertAsField:=False
End With
End Sub
 
Back
Top