sharing class modules between projects

C

Chip Orange

I have some class modules in module A which I'd like to use in module B.
Both A & B have been placed in the Word startup dir. I've added a reference
in B to A. I've set the instancing property for the classes to
"public-not-creatable" as directed in a "tips" web page. I've added a
function in each class which returns a variable instantiated of that class.

While I'm able to declare a variable in module B of the class, I am unable
to called the function I've created to instantiate it. My code in module B
is:

DIM Test as DocketCollection
Test = CreateDocketCollection()

It's the call to CreateDocketCollection() that's failing, with a "not found"
error.

thanks for any help with this.

Chip
 
C

Chip Orange

Sorry guys, found my problem; the special function to create an
instantiation of the class needs to go in a standard code module, not in the
class module.

Chip
 

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