Problem executing macros from global template

A

Arlan

After creating a new template in Word 2002 then saving it
in the word\startup folder then adding it in Global
Templates and Add-ins I can access the custom toolbar in
any new document. But, when I access any control that uses
a macro it says "compile error in hidden module:
modulename." It works before saving it as a template.
What is happening?

THANKS!
 
W

Word Heretic

G'day "Arlan" <[email protected]>,

Load said global, use Tools > Compile and it will take you to the
syntax error.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Arlan reckoned:
 
A

Arlan

It seems that the problem is that the reference to the MS DAO object
disappears when it is saved as a template. Is this a feature (AKA bug) in
VBA or is there something more basic that I am missing?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QXJsYW4=?=,
It seems that the problem is that the reference to the MS DAO object
disappears when it is saved as a template. Is this a feature (AKA bug) in
VBA or is there something more basic that I am missing?
A reference shouldn't disappear when you simply save a template. Are you
certain you're setting the reference with the focus in the correct project?

You say "when IT is saved as s template". What is "IT"?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
W

Word Heretic

G'day "Arlan" <[email protected]>,

Keep a dummy userform in your project.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Arlan reckoned:
 

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