event before global template closes

M

MikeB77

Hello
I'm trying to stop Word asking to save a changed global template (not
Normal) before it closes. If I can trap the event I can decide to save it or
not.
AutoExit runs after the 'would you like to save' dialog. is there an event
for a global template that fires before this dialog?
AutoClose only appears to fire when in a closing doc (or normal template
with closing doc attached).

Thanks

Mike
 
T

Tony Jollans

Under what circumstances, other than closing it, do you get a "do you want
to save" prompt for a global template?

The only way you can know whether you want to save it is if you know (in
other words record somehow) the changes that are made and any other events
that influence you. It seems extremely unlikely that there could be a
combination of circumstances that meant that you couldn't actually make the
decision to save at some point earlier than just before closing time, and do
the save at that earlier time, obviating the need for the event at the time
you ask.

What kind of changes are you making that might require saving on any kind of
regular basis?
 
M

MikeB77

Thanks Tony.
I'm saving variables and updating menu FaceIDs to the template. As you
observed I know when this happens. I wanted to avoid re-saving each time a
change occurs to reduce the impact of saving (time delay) on the user and as
in some circumstances the changes would not need saving.

I got around this my installing a class module to capture "before document
close" events (thanks you mvps site!) and checking if
application.documents.count = 1, then doing my save at this point if needed.

Mike
 

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