OpenSTAAD V8i
Error message:
This message "User Defined type not defined" may appear on the line which declares the OpenSTAAD object variable if the variable is declared “As Output”, e.g., “Dim objOpenSTAAD As Output
”. The message may be appearing because the OpenSTAAD library references have not been included. The VBA compiler therefore does not know which functions are associated with the OpenSTAAD object.
There are two ways to eliminate this error message:
Declare the OpenSTAAD object As Object, instead of As Output, e.g.
Dim objOpenSTAAD As Object
To include the OpenSTAAD library reference, select Tools > References in your VBA editor. A dialog box with title “References – Normal” will open. You will see a scroll box inside the dialog box labeled “Available References.” Scroll down through the list of references until you find one called “OpenSTAAD 1.0 Type Library”. Toggle on the corresponding check box, then click OK.
Now re-run your macro to see if the problem with the “User Defined type not defined” error message has been solved.