Template in the Word startup folder always asking to user to save when exit

L

Liz

I have a global template in the Word startup folder. It changes the
macros that are assigned to toolbar buttons and shortcut keys. It also
references OLE Automation, Microsoft Office 11.0 Object Library and
microsoft Forms 2.0 Object Library.

Whenever the Word instance is closed, if the macro that resides in that
template has been used, there is a prompt to "Save Changes to
RGNumbering.dot".

Does anybody have any idea how to get rid of this?

Thanks,

Liz
 
C

Charles Kenyon

Clean up the coding. At least the customization context is right!

Here are a couple of ideas:

At the end of the procedure that changes stuff, add the line:
ThisDocument.Saved = True
This makes Word think the template has been saved.

Note, unless you are making different changes every time, you can just make
the changes once (with or without a macro), save the template, and leave it
alone. The changes should be implemented every time Word starts up.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
L

Liz

Thanks for your input.

My customization context is correct? I was just told by somebody that
it should be normal.

I can't make the changes when Word starts up because the changes occur
with user input.

Thanks again,

Liz
 
C

Charles Kenyon

It should _not_ be normal.dot! Your customization context should be your
template. Otherwise your Add-In is going to start acting more like a virus
and less like a helper.

That you need user input is a good reason to do it on-the-fly. Do you need
this user input everytime Word is started, though? If not, consider making
the changes to your template the first time your tempate is on a computer,
saving the template with the changes and thereafter not prompting for them
or making changes.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
L

Liz

Anytime the user decides to use line breaks after a number, a
different macro is attached to the keyboard shortcut and toolbar
button, so it's not just one time. I think I'm going to try a
different method of inserting line breaks, however. Thanks again for
your input.
 

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