Updating fields without printing

  • Thread starter Thread starter Peter Tragardh
  • Start date Start date
P

Peter Tragardh

Is it possible to update the fields in a document without printing? I have
this dot-file that includes the creation date. When a new document is
created from it, the date reflects the date that the dot-file was created.
The field isn't updated until the document is printed. If the document
isn't intended for paper (electronic manual or whatever) the data is not
what the reader is expecting.

/Peter
 
Peter,

There are several ways:

1. Press F9
2. Toggle in and out of PRINT preview.
3. Use an AutoNew macro in the template:

Sub AutoNew()
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType < wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
End Sub
 
If you are using an unlocked CREATEDATE field, you are not creating the new
document in the correct way. You are opening your template and using SAVEAS.
You can check this by opening your saved new document. Go to SaveAs and the
only file type available for you to use is "Word template." This assumes
that your original "template" was indeed a Word template.

A CreateDate field in a new document based on a template will show the date
of the document's creation even though it will show the date of the
template's creation in the template.

To create a new document based on a template correctly either use File =>
New and select your template or double-click on the template from Explorer.
--

Charles Kenyon

See 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.
 
I can't find the KB reference at the moment, but I believe the behavior with
regard to updating CreateDate fields changed with Word 2002 (possibly as a
result of one of the updates).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
I found that article, but I could have sworn I'd seen another. But I guess
it was the "Filename and path" not updating (rather than CreateDate) that
I'm remembering all the fuss about. That would be covered by "The FILENAME
field does not automatically update when you open a document in Word 2002 or
Word 2003" at http://support.microsoft.com/?kbid=832897

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
If you are using an unlocked CREATEDATE field, you are not creating
the new document in the correct way. You are opening your template and
using SAVEAS. You can check this by opening your saved new document.
Go to SaveAs and the only file type available for you to use is "Word
template." This assumes that your original "template" was indeed a
Word template.

A CreateDate field in a new document based on a template will show the
date of the document's creation even though it will show the date of
the template's creation in the template.

To create a new document based on a template correctly either use File
=> New and select your template or double-click on the template from
Explorer.

I saved my template with saveas and chose Word template. Now the field is
updated as intended. Did not know of this predicament.
 
Back
Top