Saving dirty global template

S

Stephen English

I have used this code when I am saving documents where the
template has changed and I don't want to save the changes
Set mytemplate = ActiveDocument.AttachedTemplate
mytemplate.Saved = True

I have created buttons on the menubar of a global template
which I don't want to save. How do I do this please?
Stephen
 
J

JSM

When adding the buttons, set Temporary=true. This will automatically dispose
of the buttons upon closing.
 

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