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??

Re: Template errors by Charles

Charles
Mon May 09 12:44:13 CDT 2005

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.

"Clint" <Clint@discussions.microsoft.com> wrote in message
news:6FEC3489-F01E-49F5-8919-67906CF786BD@microsoft.com...
>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??



Re: Template errors by Dawn

Dawn
Mon May 09 13:24:07 CDT 2005

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.

"Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in
message news:urn1y6LVFHA.1796@TK2MSFTNGP15.phx.gbl...
> 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.
>
> "Clint" <Clint@discussions.microsoft.com> wrote in message
> news:6FEC3489-F01E-49F5-8919-67906CF786BD@microsoft.com...
>>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??
>
>



Re: Template errors by Clint

Clint
Mon May 09 15:31:07 CDT 2005

Thanks everyone. I think I got an idea how to do this differently.

"Dawn Crosier" wrote:

> 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.
>
> "Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in
> message news:urn1y6LVFHA.1796@TK2MSFTNGP15.phx.gbl...
> > 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.
> >
> > "Clint" <Clint@discussions.microsoft.com> wrote in message
> > news:6FEC3489-F01E-49F5-8919-67906CF786BD@microsoft.com...
> >>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??
> >
> >
>
>
>