word Templates

J

jas

hi,

i have created a document based on a custom template using mailmerge.

if i open the document within code into word 2002, then close the
document, i am prompted to save the template. but, if i manually
open and close the document, nothing happens.

why am i being prompted and how do i stop it?

thanx
 
J

Joost Verdaasdonk

Hi,

Probarbly you're code is changing something in the
template itself!

Check you're code for any actions that change something
there.

If al fails set the .Saved property of the template to
True:

Dim oDoc As Word.Template
Set oDoc = ActiveDocument.AttachedTemplate 'or the one
you're looking for
oDoc.Saved = True
Set oDoc = Nothing


Groetjes,
Joost Verdaasdonk
 
Top