I am trying to start SAP2000 using VBA Excel but I get an error with the message: "Automation Error". The code is very simple:
Sub api()
Dim SapObject As Sap2000.SapObject
Set SapObject = New Sap2000.SapObject
SapObject.ApplicationStart
End Sub
This code should start SAP2000 but it does not.
SAP2000v14 is installed along with Office 2013. I have checked the tick box next to SAP2000 in Tools-References menu.
By the way, I can run SAP2000 using MATLAB.
Thank you!
Dim SapObject As New Sap2000.SapObjectand omit theSetline?