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
 

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