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.
 
Top