Template errors

C

Clint

I had a template which was created with Word 2000 and now we have Word 2003.
Everything was working fine until I wanted to add a new button to the
template. Now any document that was created with the 2000 version template
errors when it's opened in Word 2003 because it see's the code for the new
button I created but it doesn't see the button. This must be something new
with Word 2003 where it stays connected to the template and any new code that
is added to then template is added to an existing document.

Does anyone have any ideas??
 
C

Charles Kenyon

1) Don't add ActiveX buttons that you don't need. Put controls for the
document in custom toolbars and their buttons unless you absolutely need
something you can only get with a control in the document itself.

2) Yes. Documents remain attached to their templates unless you change this
or the template can't be found. If you put something in the code of your
template (i.e. in an AutoOpen macro) that references your button, that macro
will be trying to run in your legacy documents that don't have the button.
--
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

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
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.
 
D

Dawn Crosier

Clint -

In addition to what Charles pointed out, check your references in your
template. I suspect that you will find a MISSING Reference to an Object
Library. When you added the control, Word probably changed your library
references. You may be able to step down to a lower version of the same
library. When working with templates which are going to be run on two or
more different versions of Word, always DEVELOP in the lowest version and
TEST in all the remaining versions. That way you can tweak your code if
necessary. The lowest version of Word does not *know* about the newer
versions, but the newer versions do.

Good Luck.

--
Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"

This message is posted to a newsgroup. Please post replies and questions to
the newsgroup so that others can learn as well.
 

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