Compile Error - Reference Problem

P

Pauly

I have a number of word templates which reference one or two other templates containing shared code (about 800 in total).

When I execute the templates I get an error message along the lines of "Compile error in hidden module".

If I go into the VBA editor and check the references to the templates they seem fine but the project will not compile. However, removing the references and then adding them back (using vbproject.references.addfromfile "FileString" where filestring was obtained by running activetemplate.vbproject.references(6).fullpath in the debug window seems to fix the problem.

My two questions are (1) does anyone know what is causing this to happen an
(2) Is there any way of opening a template programatically and checking to see if it compiles?
 
H

Harish.G [MSFT]

Hi,

This issue is generally caused if you have installed goldmine application
or symantec antivirus program with word 2000.
And they have just recently updated their antivirus definitions and cleared
a virus called blood hound.

It is difficult to tell what exactly is creating this kind of problem
unless we get the exact error message. I would recommend to go though the
list of knowledge base articles which might address your issue.

I am attaching link to knowledge base article which address this issue.
WD2000: "Compile Error in Hidden Module" Error Message When You Start Word
http://support.microsoft.com/?id=313456

WD2000: Error Message: "Compile Error in Hidden Module ModMain"
http://support.microsoft.com/?id=230084

WD97: Error Message: "Compile Error in Hidden Module ModMain"
http://support.microsoft.com/?id=250600

WD2000: Error Message: Compile Error in Hidden Module EFunctions
http://support.microsoft.com/?id=304508

WD: Error Message: "Compile Error in Hidden Module" When You Open, Close,
or Save a Document
http://support.microsoft.com/?id=314127

Please provide more detailed description for more precise answer.


I am happy to help you. Do let me know your progress on this issue.




Harish.G

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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