Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
automatically update and display date at beginging of text in word
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? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
automatically update and display date at beginging of text in word
'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 Word MVP web site http://word.mvps.org Tim wrote: 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? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
automatically update and display date at beginging of text in word
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. "Tim" wrote in message ... 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? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
MULTIPLE INSTANCES OF THE SAME BOOKMARK IN A USER FORM | Microsoft Word Help | |||
Hyperlink with Merge Field | Mailmerge | |||
Headers & Footers Again! | New Users | |||
Display settings of Word 2002/2003 | Microsoft Word Help | |||
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements | Mailmerge |