Professional Documents
Culture Documents
2. Include the OpenSTAAD library reference in your VBA editor. This second op on has the added benefit that once you do it, the compiler will now recognize the OpenSTAAD object and will pop up a list of func ons whenever you refer to the
object in your VBA editor.
To include the OpenSTAAD library reference, select Tools > References in your VBA editor. A dialog tled References – Normalopens. You will see a scroll box inside the dialog box labeled Available References. Scroll down through the list of references un l you find and
entry labeled 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.