Solved

How to set static create date in header of MS Word 2003 template?

Posted on 2010-09-01
4
378 Views
Last Modified: 2012-05-10
I am writing daily logs at work and the boss wants me to log in the date and time of each entry. I have created a template and inserted the date and time into the header. The goal is to open the same template with the current date and time stamp, create the daily log, and save it as the daily log document for that day.

If I choose not to update the date automatically In the template, the date doesn't change so I have to go in every time and change it.

It works perfectly when I choose automatically update in the template. But when the boss goes into to review the daily log document, the date time stamp changes  every time the document is opened.

How can I effectively insert the create date of the log into the header of a Word 2003 template so the date changes when the new document is saved off the template, but the date doesn't change when the document is reopened at a later time?
0
Comment
Question by:walcottwhiz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 51

Expert Comment

by:Netman66
ID: 33579139
Give your boss read only access to the documents.  Set it to Auto (as you had previously) and only open them once to make the change and save.Otherwise, you do not set it to Auto and when you need it updated then right click it and select update.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 33579143
Use a CreateDate field. Each new document created from the template will have its own fixed date.
0
 
LVL 8

Expert Comment

by:PandaPants
ID: 33579248
You could set up the template with a bookmark indicating where the date should be, then include code like this in the Document_New() macro for the template:

' Select the bookmark, then:    
Selection.InsertDateTime InsertAsField:=False

That will place the current date into the doc as text, so it won't change after the document is created.
0
 

Author Closing Comment

by:walcottwhiz
ID: 33579645
Of all submitted responses, this is exactly what I was looking for, thank you.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question