setup a running Logbook in Word?

T

Trying2Work

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???
 
A

Andy

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


===================================
 

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