I have created two separate Word Template *.dot. One of them when I double
click on the template for a New Document it displays the UserForm1 the other
for the same action does not display the UserForm1. Looking at both on the
Project Explorer window in VBA I see "NewMacros" for both, I see
"ThisDocument" for both and I see "UserForm1" for both but for the template
that user form does not pop up for a new document, I see a new Object that I
don't see for the other and it is called "Reference to Normal". I can not
Remove it... What it is this "Reference to Normal". Both of these template
have AutoNew Macro with UserForm1.show inside of them but I don't know what
went wrong at the creation of this new template that does not work... The
only thing I did I just copied an old template without Macro and renamed it
and added the controls and Macro to it... What could this be the cause no
UserForm1 display?
Jeffery B Paarsa was telling us:
Jeffery B Paarsa nous racontait que :
> I have created two separate Word Template *.dot. One of them when I
> double click on the template for a New Document it displays the
[quoted text clipped - 4 lines]
> up for a new document, I see a new Object that I don't see for the
> other and it is called "Reference to Normal". I can not Remove it...
Right there!
If you see this it means it is not a real *.dot.
Copying a *.doc and changing the name to "something.dot" does not make it a
template, as you have just discovered.
You have to create a real template (Save As) and then import the stuff from
the *.doc file.
> What it is this "Reference to Normal". Both of these template have
> AutoNew Macro with UserForm1.show inside of them but I don't know
> what went wrong at the creation of this new template that does not
> work... The only thing I did I just copied an old template without
> Macro and renamed it and added the controls and Macro to it... What
> could this be the cause no UserForm1 display?

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org