Hi everyone! I have prepared a VBA code that repeats a large number of times a structural analysis which is performed with the software Sap2000. It works perfectly well most of the time, however, sometimes the analysis suddenly stops with the message:
Error 442: Connection to type library or object library for remote process has been lost
I only have the option to "end" or click "help". When I click "end", the procedure does not stop and the message reappears immediately. I am starting to think that the error happens when Sap2000 is not active at the moment of being called, i.e. it is in the background. This happened once when Explorer was the active window (after 1 hour of successful running).
Does anyone have any idea how to deal with this? Is there any code I can add to keep Excel and Sap2000 linked during the analysis, even if I open other programs? I am using Excel 2010.
Thank you in advance!
Error 442: Connection to type library or object library for remote process has been lost
I only have the option to "end" or click "help". When I click "end", the procedure does not stop and the message reappears immediately. I am starting to think that the error happens when Sap2000 is not active at the moment of being called, i.e. it is in the background. This happened once when Explorer was the active window (after 1 hour of successful running).
Does anyone have any idea how to deal with this? Is there any code I can add to keep Excel and Sap2000 linked during the analysis, even if I open other programs? I am using Excel 2010.
Thank you in advance!