M
Micheline
How can I programmatically save a document once I have detached it from the
original template it was created?
The code does work only if… the Original template is open at the time, then
the detached document gets saved programmatically.
The reason why I need this functionality is because I don’t want the macros
on the customized toolbar to be available once the document is completed)
For now, if I detach the template, the document needs to be saved (i.e. the
user gets prompted to save), the ActiveDocument.Save does not get executed.
See code:
ActiveDocument.AttachedTemplate = ""
ActiveDocument.Save
Hope someone can help me and thanks very much.
original template it was created?
The code does work only if… the Original template is open at the time, then
the detached document gets saved programmatically.
The reason why I need this functionality is because I don’t want the macros
on the customized toolbar to be available once the document is completed)
For now, if I detach the template, the document needs to be saved (i.e. the
user gets prompted to save), the ActiveDocument.Save does not get executed.
See code:
ActiveDocument.AttachedTemplate = ""
ActiveDocument.Save
Hope someone can help me and thanks very much.