Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

word Templates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jas - 05 Nov 2004 13:50 GMT
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
Joost Verdaasdonk - 05 Nov 2004 23:18 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.