insert Date field -- permanently

Z

zSplash

This seems like it should be very simple to achieve, but I am unsuccessful,
so far.

I use a form field in the document header to insert the current date. How
can I make that date permanent (and not change with time)?

If I create the document on January 3, and edit it on January 5, I don't
want the form field to change to January 5. That is what happens when I use
the Date function.

The CreateDate function would be great, except that this document is created
from a template; hence, CreateDate results in a December 5 date in the
header. I want the header to have the date the new document is created, not
the date the underlying template was created.

TIA
 
J

Jonathan West

Hi zSplash

You need to insert a CREATEDATE field instead of a date field.
 
Z

zSplash

Thanks for the input. The trouble with that is that the document I am using
as the "base" for my new document was created in December, so if I use
CreateDate, I get December 5.

st.
 
J

Jonathan West

What you do is make a template out of that document. Then when you create a
new document based on the template, it will have today's date.
 
C

Charles Kenyon

If you create a new document based on a template that contains a CREATEDATE
field, that field will reflect the date the document is created (not the
date the template is created).
--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Z

zSplash

The new document I create is created by inserting an old document, so the
inserted document's CREATEDATE field does not reflect today's date, but,
instead, reflects the date the document was created.

st.
 
J

Jonathan West

zSplash said:
The new document I create is created by inserting an old document, so the
inserted document's CREATEDATE field does not reflect today's date, but,
instead, reflects the date the document was created.

The Document which you actually save must be a new document for CREATEDATE
to work right. So long as this is the case, the CREATEDATE field can be part
of an old document that is inserted into the new document.

CREATEDATE reflects the date on which a document was first saved. (or more
strictly, the date on which a "Documentn" editing window was first created
for the document.

You need to re-think the process for this document and find a way of
creating a frexh document out of a template.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

I think you should re-consider the way in which you are creating the
document. However, if you are doing this by code, you could use

.Range.InsertBefore Format(Date, "MMMM d, yyyy")

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
 
Z

zSplash

Thank you, Doug. That is exactly what I will do, by putting a bookmark
instead of a form field in the header and then running code on opening the
document. I appreciate your help.

st.

"Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS"
 

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

Top