AnsweredAssumed Answered

in Processbook VBA, how do I disable an object library reference that is in use?

Question asked by gfmalek on Feb 27, 2019
Latest reply on Feb 28, 2019 by gregor

I have two .pdi files.  I want to run a very simple line of code --> "MsgBox ThisDisplay.Symbols(1).Name".  In one of the .pdi files it works perfectly fine and prints the symbol's name.  In the other .pdi file, it gives the following error:

 

Compile error:

 

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

 

I viewed Tools >> References for both .pdi files.  The working .pdi file has the following references checked:

Visual Basic For Applications

OLE Automation

PI-Processbook Type Library

PI-Processbook Symbol Library.

 

The non-working .pdi display has those four checked, plus a fifth one titled "Microsoft Forms 2.0 Object Library."  I tried to uncheck this reference but received "Can't remove control or reference; in use".

 

 

 

Does this References discrepancy explain why one .pdi display executes the macro just fine and the other doesn't?  And if so, how do I get the dysfunction display to execute VBA code if I can't disable the reference that's causing problems?

 

Thanks for your help.

Outcomes