class module in a startup template

H

Hege M

Hi!

I have tried to put a class module in a template in the startup folder.
But when I try to declare an instance of this class I get the message
Compile error: User-defined type not defined.

How can I get the other template to be able to reach this class?
 
J

Jonathan West

In the other template, you need to set a reference in the VBA editor, using
the Tools References dialog.

However, I think you might find it easier just to put a copy of the class
module into each template that makes use of it.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.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