Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Tim
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Joe McGuire
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MULTIPLE INSTANCES OF THE SAME BOOKMARK IN A USER FORM Carol Microsoft Word Help 20 October 3rd 06 12:41 AM
Hyperlink with Merge Field Wayne Wengert Mailmerge 5 May 22nd 05 06:33 PM
Headers & Footers Again! Alasdair Crockett New Users 23 February 20th 05 12:03 AM
Display settings of Word 2002/2003 south_lad2003 Microsoft Word Help 1 January 17th 05 09:36 PM
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements Mark V Mailmerge 8 November 30th 04 02:31 PM


All times are GMT +1. The time now is 02:29 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"