Question : Excel 2007 :: object library invalid or contains references to object definitions that could not be found.

I am trying to use an excel Add-In (Wonderware Active Factory 9.2) and it doesn't work.

When I start EXCEL I always get the following message:

Compile Error:

object library invalid or contains references to object definitions that could not be found.

I've done quite a lot of searches here and in google and not found anything that could help me...

I've already tried to uninstall Office 2007 and install it back without any luck.. .always the same error.

I have the same thing running correctly on another computer, I've checked the References on both computers are the same and same DLL versions... I'm kind of desperate with this... I am convinced that If I fully reinstall the computer it will work... but it's a pain in the ass doing it because I ave a lot of stuff on this computer...

Is there any way to knwo WHICH object has the problem? That may help me to fix the thing...

Thanks in advance for the answers that are going to come :--)

Answer : Excel 2007 :: object library invalid or contains references to object definitions that could not be found.

Given:
It is working on the _other_ computer.
_This_ computer is missing something.

Find out what it is by discovering the line of code that calls the _missing_ thing.

You can go through the code line by line and verify the type of every variable, then track down the origin of the implementation of that type and you will eventually figure it it out.  This is the hard way.

Or _try_ commenting it out module by module.  Eliminate the code that IS working, and get to the code that ISN'T working.  This is the easiest way I know.

If you'll upload the addin I may be more directly helpful.  Other than that, all I can give you are debugging tips, which I have done.

Best of luck to you.


Random Solutions  
 
programming4us programming4us