What could be wrong? I am getting frustrated on this!

J

Jeffery B Paarsa

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

Jean-Guy Marcil

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

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?



--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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