Gregory Malek wrote:
Object library invalid or contains references to object definitions that could not be found.
Even KB00804 - VBA Errors in Microsoft Excel is for Excel and not for ProcessBook, I believe it is sufficient. Please see if you can find any EXD files and delete them. If this doesn't work, it would be helpful to know which control the one with index 1 is.
Gregory Malek wrote:
I viewed Tools >> References for both .pdi files. The working .pdi file has the following references checked:
Visual Basic For Applications
PI-Processbook Type Library
PI-Processbook Symbol Library.
The non-working .pdi display has those four checked, plus a fifth one titled 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?
You cannot uncheck "Microsoft Forms 2.0 Object Library." because the PDI has a control from this library. I don't believe that the original issue is because of the Microsoft Forms 2.0 Object Library. Potentially the issue is with a control from this library.
Thank you for your response. No VBA code is working on this .pdi file. I used the above code ("MsgBox This Display.Symbols(1).Count") just as an example. ' MsgBox "Hello" ' does not work either.
I deleted the *.exd files as you suggested, but each time I open the .pdi file it recreates the files.
What action / event are you using with 'MsgBox "Hello"' in the problematic PDI?
Can you try the PDI on a different client?
Try saving a copy under a different name. Does this change anything?
Could be that the PDI is "broken". I found one similar case that was resolved by copying the complete content over to a new PDI.
If all this doesn't help, we may be able to fix it using some internal tools. Please shoot me a private message and I will create a Technical Support case for further investigation.