
Code Library and Class Modules
Thanks Michael,
I've attempted to use this solution and it does give me partial success. I
used the second method and attempted to expose the class to VBA by change
the VB_Exposed attribute to True. This did allow me to see the class in the
object browser and to create a single instance of it - but only one
instance.
Is there a way to allow multiple instancing of this class?
I might also add that in the text file created, there were the following
lines at the beginning of the module:
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
These were not removed when I inserted the text file into a new module and
they triggered compile errors. The MultiUse line sort of sounds like it
might have something to do with instancing but I don't know how to work it
in so that VBA will allow it.
Why is this so difficult? It seems like the capability to use a library
database should include classes, which are supposedly (and IMHO are) a great
strength of VB.
As a side question, if I abandon the library approach for the class module,
could I create an Object library for it using VBA. Is this going to be
getting me in over my head?
I appreciate your help.
Sandra Daigle
Quote:
> --
> MichKa
> -------------------------------------
> don't send questions by e-mail unless
> you're paying for it. (TANSTAAFL!) :-)
> random junk of dubious value and
> replica error and problem fixing at:
> http://www.trigeminal.com
> > Having developed quite a few functions and procedures that
> I use everywhere
> > I finally decided it was time to get these into a library.
> This seemed
> > simple enough but I have run into one obstacle. I have a
> Class Module that I
> > wanted to be available in the library but it does not show
> up in the Object
> > Browser - all of my other functions and procedures are
> there.
> > What do I have to do to make a custom class available from
> a library. This
> > class does not use forms, it is just used for saving and
> handling a
> > particular set of data.
> > I'm using Office2000 Developer.
> > Thanks.
> > --
> > Sandra Daigle