Hello,
I am trying to run the automation examples provided with Maxsurf in Excel, but whenever I try to run anything I get the following error: "Compile error: User-defined type not defined" in the very first lines where Modeler (or any other part of the suite) application is connected to Excel. (Dim msApp as New Maxsurf Modeler.Application). I have added the Bentley libraries to the Tools>References window in VBA and enabled macros in Excel.
Any ideas why this is happening?
Cheers,
Alex
It should be Dim msApp As New BentleyModeler.Application
If you are still having problems, when you look in the tools > references, check that the location for the library is correct. If you are using 32-bit VBA and 64-bit MAXSURF you have to locate the MAXSURF Modeler executable manually.
If you still have problems, try re-registering the Modeler type library.
Hi Pat
I have the same problem with stability samples.
All libraries are registered. I get this error only with the samples provided with Maxsurf.
Thanks
Despina