L
Laurent
Hi
I'm lost.
I read most posts here and quite a number of Web pages about the Attached
template Save prompt behavior, but I can't figure out.
I have this nice template with Word XP that contains shortcuts, macro,
toolbars and nifty menus. I saved it under Application
data/Microsoft/Word/startup. Some toolbar and menus macros have a Down/Up
status button macros.
New or existing documents are NOT based on this template. It is just
attached to Word for extended fonctionnality.
Whenever I use some of the macros, it changed something in the template
(up/down icon status I guess), and when I try to exit Word, I am always
prompted to save the template. Obviously, I don't want to, under any case.
I tried to add this in the template
Private Sub Document_Close()
ActiveDocument.Saved = True
End Sub
but it did't work.
I tried many variations as well, such as
Sub Document_Close()
ThisDocument.Saved = True
End Sub
OR
Sub Document_Close()
ActiveDocument.AttachedTemplate.Saved = True
End Sub
OR
Sub AutoClose()
ActiveDocument.Saved = True
End Sub
etc.
but I can't get it.
Any help appreciated.
I'm lost.
I read most posts here and quite a number of Web pages about the Attached
template Save prompt behavior, but I can't figure out.
I have this nice template with Word XP that contains shortcuts, macro,
toolbars and nifty menus. I saved it under Application
data/Microsoft/Word/startup. Some toolbar and menus macros have a Down/Up
status button macros.
New or existing documents are NOT based on this template. It is just
attached to Word for extended fonctionnality.
Whenever I use some of the macros, it changed something in the template
(up/down icon status I guess), and when I try to exit Word, I am always
prompted to save the template. Obviously, I don't want to, under any case.
I tried to add this in the template
Private Sub Document_Close()
ActiveDocument.Saved = True
End Sub
but it did't work.
I tried many variations as well, such as
Sub Document_Close()
ThisDocument.Saved = True
End Sub
OR
Sub Document_Close()
ActiveDocument.AttachedTemplate.Saved = True
End Sub
OR
Sub AutoClose()
ActiveDocument.Saved = True
End Sub
etc.
but I can't get it.
Any help appreciated.