How do I automatically not save changes to global templates

K

KirstyW

I have set up a MS Word Template with quite a lot of VBA functionality,
including altering the menu bars to give the user access to extra
functionality as they use the document. However, whenever you close a
document based on that template, it asks if you want to save changes to the
template itself. I don't want the users to have this option, so how do I get
the template to automatically close without saving changes?
 
J

Jonathan West

KirstyW said:
I have set up a MS Word Template with quite a lot of VBA functionality,
including altering the menu bars to give the user access to extra
functionality as they use the document. However, whenever you close a
document based on that template, it asks if you want to save changes to
the
template itself. I don't want the users to have this option, so how do I
get
the template to automatically close without saving changes?

Set the ActiveDocument.AttachedTemplate.Saved property to True in the
AutoClose macro.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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