Compile error in hidden module: modLibrary

M

Marc Hankin

I have two WinXp computers running Office 2002 for
Students and Teachers. I can copy my Word Startup files
(and my Normal.dot file) back and forth between the two
computers, and everything works fine on both computers.
But I recently tried copying the files to a couple of
my Win2k and Office Professional 2k computers, and I got
the following error message, when I opened Word: Compile
error in hidden module: modLibrary
When I try to use some of my forms on the Win2k
computers, Word can't find or open projects (although I
don't know for sure which projects Word can't open), and
some of the macros don't work.
Does anyone have any ideas?
Thanks again,
Marc
 
M

Malcolm Smith

Marc

A couple of suggestions. First, you should never have anything in
normal.dot which needs transporting between machines. Every now and then
normal.dot gets corrupted and often needs to be taken round the back of
the barn and shooting.

So, keep NOTHING in there of value or worth.


Secondly, your problem seems to stem from the fact that the 'lesser'
versions of Office are the ones with the problems. Perhaps in your code
you are referencing objects which don't exist in your Office 2000
applications.

When you open the IDE on these machines where do the errors lie?

- Malc
www.dragondrop.com
 
M

Marc Hankin

Malc, thanks for replying. I don't get any error
messages when I open the IDE on the "target" computers
(i.e, the computers to which I copied the .dot files).
After I posted the message, I discovered that the
macros were not working on the WinXp/Office2002 target
computer also. (I erred in message saying that the .dot
files worked on the WinXp/Office2002 "target" computer.
I naively assumed everything was working on the
WinXp/Office2002 target computer because, when I opened
Word, I did not immediately get the error message:
Compile error in hidden module: modLibrary. I was
getting that message immediately on the other "target"
computers as soon as I booted up Word.)
Later, when I tried to use a Userform
(named "frmMenuGenlAccess" [in MarcP4OurStuff.dot] on the
WinXp/Office2002 "target" computer) to trigger various
macros, I got this error message:
"Compile error in hidden module: frmMenuGenlAccess"
OK/Help I pushed the Help button, and get the message
that "Compile error in hidden module. A protected module
can't be displayed...." Since the frmMenuGenlAccess is
in MarcP4OurStuff.dot, I checked the properties of
MarcP4OurStuff.dot to ascertain if somehow it became
protected, and it doesn't appear to be protected.
Adding to the confusion, some command button triggered
macros on the frmMenuGenlAccess do work.
One of the macros (triggered by a command button
on "frmMenuGenlAccess"), which does Not work, produces
error message: "Compile error: can't find project or
library". When I click OK, StrConv is highlighted on the
following line:
strSelektion = StrConv(strSelektion,
vbProperCase)
I checked the Tools, References for MarcP4OurStuff.dot,
and found plenty of reference check boxes checked, with
one perplexing reference:
"MISSING: Microsoft Visual Basic 6.0
extensibility"
Any ideas? (Thanks for reading all of this. Much
appreciated.)
Marc
 
M

Malcolm Smith

Marc, I have to go down to London for a couple of days for a hospital
appointment. If no-one gets back to you with an answer before then, then
I'll see what I can do.

- Malc
 

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