automatically update and display date at beginging of text in word

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

Guest

Every time I open a document to edit it, I want the current date to
automatically appear at the beginning of the sentence. Is there a way to do
this?
 
'Automatically' is the problem.

To do this the simplest method is to create a new template for this document
and *in that* template save the following macros

Sub AutoNew()
Selection.EndKey Unit:=wdStory
Selection.InsertDateTime DateTimeFormat:="dd/MM/yyyy", _
InsertAsField:=False
Selection.TypeText Text:=vbTab
End Sub
Sub AutoOpen()
Selection.EndKey Unit:=wdStory
Selection.TypeParagraph
Selection.InsertDateTime DateTimeFormat:="dd/MM/yyyy", _
InsertAsField:=False
Selection.TypeText Text:=vbTab
End Sub

This will put the date at the start of a new document followed by a tab.
Every time the saved document so created is opened it will add a new line
and put the date followed by a tab. Change the date masks to whatever you
require.
http://www.gmayor.com/installing_macro.htm

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
It's very easy. Open your Word document and replace the date. Go to
Insert, Date and Time, select the date format you want and put a check in
the box for Update Automatically. Press OK and return to your document.
Save it and henceforth and forevermore whenever you (or anybody else) opens
this document it will have that day's date.

A cautionary note: Is this really what you want? Most people who ask about
this want to do the opposite: they want to prevent automatic updating
because of the great potential for later confusion.
 

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

Back
Top