Solved

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

Posted on 2010-09-01
4
376 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
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mail merge IF Statements 8 56
Office.Interop.Word Document - Detect Macros not working 16 42
word 2016 1 32
Way to set up standard picture size for pasting in MS Word 3 28
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.

830 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