Years ago, in a different program, I could type ".log" in the first line of a
document and every time I opened that document it would take me to the end,
insert the computer's time/date stamp and a CR. It made it a great running
logbook. Double click on the icon, and type in a note -- simple and
effective.
Is there any way to get Word to do something like that???
Andy - 04 Nov 2004 05:40 GMT
> Years ago, in a different program, I could type ".log" in the
> first line of a document and every time I opened that document it
> would take me to the end, insert the computer's time/date stamp
> and a CR. It made it a great running logbook. Double click on
> the icon, and type in a note -- simple and effective.
>
> Is there any way to get Word to do something like that???
With this macro, every time you open the document, it should do what
you want.
===================================
Sub AutoOpen()
With Selection
.EndKey Unit:=wdStory 'puts cursor at end
.TypeParagraph 'starts a new line
.InsertDateTime DateTimeFormat:="dd-MMM-yy", _
InsertAsField:=False 'types in date in the above format
.TypeParagraph 'starts a new line
End With
End Sub
===================================